CORS Concept Quiz
Multiple Choice Medium
Question
What does CORS protect against?
Hint
It is about cross-origin requests — different domains.
Explanation
CORS (Cross-Origin Resource Sharing) is a browser security mechanism that prevents scripts on one origin from making requests to a different origin unless the server explicitly allows it. It protects against malicious websites making unauthorized requests to APIs on behalf of the user. It is enforced by the browser, not the server.
Related Resources
Related Lessons
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.