Cross-Origin Resource Sharing (CORS)

By: Dusty Arlia
Published on Wednesday, November 13, 2013, 09:25 PM
Last Updated on Monday, July 06, 2015 at 10:12 PM
Total Updates: 3

The Cross-Origin Resource Sharing standard, referred to as CORS, relaxes the same-origin policy of web browsers. CORS allows a script on a webpage to make a request to another domain using the XMLHttpRequest object. This standard adds a new Origin HTTP request header and a new Access-Control-Allow-Origin HTTP response header. Web servers use these new HTTP headers to allow specific origins to request files from different domains. Or the web server can allow cross-origin resource sharing from any website by using a wildcard (*).