DevKits

CORS · Response header

Access-Control-Allow-Headers

Which request headers may be used in the actual cross-origin request.

What is Access-Control-Allow-Headers?

Sent in preflight responses to whitelist non-simple request headers (like Authorization, Content-Type: application/json).

Typical usage

Set on OPTIONS preflight responses.

Examples

Access-Control-Allow-Headers: Content-Type, Authorization

Specification

Fetch Standard §CORS

Frequently asked questions

What is the Access-Control-Allow-Headers HTTP header?

Sent in preflight responses to whitelist non-simple request headers (like Authorization, Content-Type: application/json).

Is Access-Control-Allow-Headers a request or response header?

Access-Control-Allow-Headers is a response header — the server sends it to the client. Set on OPTIONS preflight responses.

What does a Access-Control-Allow-Headers header look like?

A typical Access-Control-Allow-Headers header looks like: Access-Control-Allow-Headers: Content-Type, Authorization.

Related headers

Work with this header