Web Security · Junior · Question 39 of 75
What is CORS?
- 1A method to encrypt API traffic between servers
- 2A firewall that blocks requests from unknown countries
- ✓Correct answer: A way for a server to tell browsers which other origins may read its responses
Explanation
Cross-Origin Resource Sharing relaxes the same-origin policy through response headers like Access-Control-Allow-Origin. It is enforced by the browser.