CORS

BrandonDusch's avatar
Published Aug 18, 2022
Contribute to Docs

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.

  • A full-stack engineer can get a project done from start to finish, back-end to front-end.
    • Includes 51 Courses
    • With Professional Certification
    • Beginner Friendly.
      150 hours
  • Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.
    • Beginner Friendly.
      15 hours

CORS

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

All contributors

Contribute to Docs

Learn General on Codecademy

  • A full-stack engineer can get a project done from start to finish, back-end to front-end.
    • Includes 51 Courses
    • With Professional Certification
    • Beginner Friendly.
      150 hours
  • Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.
    • Beginner Friendly.
      15 hours