DevKits

CORS · Response header

Access-Control-Allow-Credentials

Whether cookies and Authorization can be sent cross-origin.

What is Access-Control-Allow-Credentials?

When set to `true`, the browser will include cookies and TLS client certs on cross-origin requests. Must be combined with a specific Access-Control-Allow-Origin (not `*`).

Typical usage

Set to true on responses that require user session cookies cross-origin.

Examples

Access-Control-Allow-Credentials: true

Common gotchas

Combined with Access-Control-Allow-Origin: *, the browser will refuse the response. Always specify a concrete origin when credentials: true.

Related headers