CORS

Cross-Origin Resource Sharing (CORS) is a tool that uses HTTP headers to help servers determine which requests from other resources can access the current, cross-origin resource.

In most cases, browsers will make a “preflight” request to the host server to ensure the actual request will work. This is another function of CORS.

CORS

Access-Control-Allow-Origin
Determines which requests from other pieces of web content have access to the current resource.

Contributors

Interested in helping build Docs? Read the Contribution Guide or share your thoughts in this feedback form.

Learn More on Codecademy