Skip to content
Skip to content
← All HTTP Headers
CORS

Access-Control-Allow-Credentials

Indicates whether the response to a credentialed cross-origin request can be exposed to JavaScript.

Syntax

Access-Control-Allow-Credentials: true

Example

Access-Control-Allow-Credentials: true

Description

The Access-Control-Allow-Credentials response header tells browsers whether the response to a cross-origin request with credentials (cookies, HTTP auth, client-side certificates) can be exposed to JavaScript.

When set to true, the Access-Control-Allow-Origin header must specify an explicit origin (not *), otherwise the browser will block the response.

Check if your website sends this header correctly

Check your headers →

Related Articles

Related Headers