Send JSONP Cross-domain Requests
From:w w w . j son.com/100-awesome-uses/87-send-jsonp-cross-domain-requests 12.16.2013 Dave Romero Cross-domain Requests In developing web applications it's commonplace to send and receive data to APIs (Application Programmable Interfaces) that exist on other domains. This cross-domain communication is often performed directly in the browser, on the client-side using JavaScript. Cross-domain communication can be accomplished using a server-side languages like Python, Nodejs, PHP, etc., however for cases where responses from cross-domain requests are utilized in the browser, JavaScript can save time and simplify development. Addintionaly, JavaScript requests are asynchronous— meaning they can be run in parallel with other processes. For example, JavaScript requests to other domains can be processed asynchronously while the page is still loading. Same-origin Policy Same-origin policy is an important security concept in client-side programming languages ...