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.
In more detail
If it is missing, the browser still sends the credentialed request but refuses to let the page read the response. Its companions Access-Control-Allow-Methods and Access-Control-Allow-Headers list which methods and request headers a preflight permits.
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-Origin — The CORS response header naming which origin may read the response, either one exact origin or * for any.
- fetch credentials mode — The fetch option that decides whether cookies and HTTP authentication are sent: omit, same-origin (the default) or include.
Taught in
- Same-Origin Policy, CORS Preflight, Credentials And Headers — Frontend Architecture & Web Platform