Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

APIs

youngjin ha
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
youngjin ha
Full Stack JavaScript Techdegree Graduate 22,644 Points

how could I access on the data that looks like in another server

I just finished AJAX courses and heard about request limitation to another server. In this project, it looks like accessing another server, but how could we access and get data with\out any request error??.. is it CORPS..? I'm pretty confused.

1 Answer

Steven Parker
Steven Parker
229,732 Points

Are you perhaps asking about CORS (Cross-Origin Resource Sharing)? That's a security restriction that requires special header information from both the client and server to overcome.

One really nice feature of the AJAX functions in the jQuery library is that they contain code that transparently resolves many CORS issues. If you have problems with CORS when using other methods, I'd suggest refactoring with jQuery.