Path: blob/main/files/en-us/web/http/headers/access-control-request-headers/index.md
6520 views
------{{HTTPSidebar}}
The Access-Control-Request-Headers request header is used by browsers when issuing a {{glossary("preflight request")}} to let the server know which HTTP headers the client might send when the actual request is made (such as with {{domxref("XMLHttpRequest.setRequestHeader()","setRequestHeader()")}}). The complementary server-side header of {{HTTPHeader("Access-Control-Allow-Headers")}} will answer this browser-side header.
| Header type | {{Glossary("Request header")}} |
|---|---|
| {{Glossary("Forbidden header name")}} | yes |
Syntax
Directives
<header-name>
: A comma-delimited list of HTTP headers that are included in the request.
Examples
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
{{HTTPHeader("Access-Control-Request-Method")}}