December 2013
Intermediate to advanced
384 pages
9h 54m
English
Cross-domain requests occur when you send AJAX requests to separate servers from different domains. The browser prevents this, and correctly so, because of a multitude of security reasons.
The only problem with blocking cross-domain requests is that you often want to obtain data from services external to the current web site. You can get around this in a couple of different ways.
The first method is to have the web server act as a proxy to the other servers or services, meaning that instead of directly communicating via JavaScript, you send the request to the server and have the server do it for you.
Another option is to do what is called on-demand JavaScript, which JSON with Padding (JSONP) uses. This method ...
Read now
Unlock full access