CORS

The browser rule set that decides whether web page code from one origin may read a response from a different origin.

In more detail

CORS stands for Cross-Origin Resource Sharing. The server grants permission with Access-Control headers, and the browser enforces it by hiding the answer from the page when permission is missing. It controls browser visibility only: it is not authentication or authorization, and tools like curl ignore it entirely.

Examples

In the browser: CORS stands for Cross-Origin Resource Sharing. The server replies with headers such as Access-Control-Allow-Origin; the browser enforces them by hiding the response from scripts when they are missing. CORS relaxes the same-origin policy; it is not a server-side protection, because non-browser clients ignore it.
The course's safe default is an empty list of allowed origins, so no other site is trusted until someone names it.

Related terms

Taught in

References