Skip to content

Instantly share code, notes, and snippets.

@alyciacan
Created November 26, 2022 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alyciacan/294d3096230e84a70efe4dcb67e174a0 to your computer and use it in GitHub Desktop.
Save alyciacan/294d3096230e84a70efe4dcb67e174a0 to your computer and use it in GitHub Desktop.
  1. What does CORS stand for? CORS stands for Cross Origin Resource Sharing. It's a security setting that allows resources to be requested by select authorized outside domains (domains with different origins). It generates non-specific errors (when CORS fails).
  2. Why is it necessary? It's a very lightweight, easy-to-sidestep security protocol. So I'm not sure why it's necessary, but I know that it's built in to the HTTP request system, and essentially "whitelists" certain origins that are allowed to request data.
  3. Why is this important for the Capstone? For the Capstone project, we'll be running our FE code on localhost 3000, and backend/API probably on 3001, so to our browser, these will be different origins. We will have to be sure to add the correct headers to our requests and ACAO and ACAH to our app, to allow requests from 3000 to 3001.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment