Skip to content

Instantly share code, notes, and snippets.

@Sierra-T-9598
Created March 16, 2022 21:38
Show Gist options
  • Select an option

  • Save Sierra-T-9598/d88d71a39b70a5db3814fea4494d0653 to your computer and use it in GitHub Desktop.

Select an option

Save Sierra-T-9598/d88d71a39b70a5db3814fea4494d0653 to your computer and use it in GitHub Desktop.
CORS

CORS: Cross-origin resource sharing

It is a protocol that allows servers to recieve request from different domains to bypass a browser security feature that restricts cross-origin HTTP requests that are initiated from scripts running in the browser (Same origin policy)

Why is it necessary?

Allows a server to relax the same-origin policy.

Why is this important for the Capstone?

To make cross-domain requests possible in cases where it is legitimate to do so like working on a full-stack app for Capstone. To make sure we can make safe requests form the browser so developers can get the needed data.

headers: Access-Control-Allow-Origin: https://example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment