Skip to content
Skip to content
← All HTTP Headers
CORS

Access-Control-Allow-Headers

Specifies which HTTP headers can be used in the actual request following a CORS preflight.

Syntax

Access-Control-Allow-Headers: <header-name>, <header-name>

Example

Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With

Description

Access-Control-Allow-Headers indicates which headers can be included in cross-origin requests.

Simple headers (Accept, Accept-Language, Content-Language, simple Content-Type) are always allowed. Custom headers like Authorization need explicit permission.

* allows any headers but does not work with credentials.

Check if your website sends this header correctly

Check your headers →

Related Articles

Related Headers