Access-Control-Allow-Origin
The CORS response header naming which origin may read the response, either one exact origin or * for any.
In more detail
If the header is missing or names a different origin, the browser blocks the page from reading the response. The wildcard * is not allowed when credentials are included; the server must echo the one allowed origin and should add Vary: Origin.
Related terms
- CORS — The browser rule set that decides whether web page code from one origin may read a response from a different origin.
- Access-Control-Allow-Credentials — The CORS response header that must be true for the browser to expose a response to a request sent with cookies or other credentials.
- wildcard — A special character, such as *, that stands for any value or any run of characters when matching names or patterns.
Taught in
- Same-Origin Policy, CORS Preflight, Credentials And Headers — Frontend Architecture & Web Platform