Cross-Origin Resource Sharing - Wikipedia

Posted . Visible to the public.

Cross-Origin Resource Sharing (CORS) is a browser technology specification, which defines ways for a web service to provide interfaces for sandboxed scripts coming from a different domain under same origin policy. CORS is a modern alternative to the JSONP pattern. While JSONP supports only the GET request method, CORS also supports other types of HTTP requests. Using CORS enables a web programmer to use regular XMLHttpRequest which supports better error handling than JSONP. On the other hand, JSONP works on legacy browsers that do not have CORS support built into them.

Last edit
Keywords
makandra, web, javascript
License
Source code in this card is licensed under the MIT License.
Posted by Lexy to makandra dev (2011-07-27 07:18)