MDN self-hosted library · e01.org

Access-Control-Request-Headers header

The HTTP Access-Control-Request-Headers request header is used by browsers when issuing a preflight request to let the server know which HTTP headers the client might send when the actual request is made (such as with fetch() or XMLHttpRequest.setRequestHeader()). The complementary server-side header of Access-Control-Allow-Headers will answer this browser-side header.

no runnable cells http-header upstream source

The HTTP Access-Control-Request-Headers request header is used by browsers when issuing a preflight request to let the server know which HTTP headers the client might send when the actual request is made (such as with fetch() or XMLHttpRequest.setRequestHeader()). The complementary server-side header of Access-Control-Allow-Headers will answer this browser-side header.

Header type Request header
Forbidden request header Yes

Syntax

Access-Control-Request-Headers: <header-name>,<header-name>,…

Directives

  • <header-name>
  • : A sorted list of unique, comma-separated, lowercase HTTP headers that are included in the request.

Examples

Access-Control-Request-Headers: content-type,x-pingother

Specifications

Browser compatibility

See also

  • Access-Control-Request-Method