AJAX Cross-Origin HTTP request
Background Cross-Origin Request Sharing - CORS (A.K.A. Cross-Domain AJAX request) is an issue that most web developers might encounter, according to Same-Origin-Policy, browsers restrict client JavaScript in a security sandbox, usually JS cannot directly communicate with a remote server from a different domain. In the past developers created many tricky ways to achieve Cross-Domain resource request, most commonly using ways are: Use Flash/Silverlight or server side as a "proxy" to communicate with remote. JSON With Padding (JSONP). Embeds remote server in an iframe and communicate th...