Path: blob/main/files/en-us/web/http/headers/access-control-request-method/index.md
6516 views
------{{HTTPSidebar}}
The Access-Control-Request-Method request header is used by browsers when issuing a {{glossary("preflight request")}}, to let the server know which HTTP method will be used when the actual request is made. This header is necessary as the preflight request is always an {{HTTPMethod("OPTIONS")}} and doesn't use the same method as the actual request.
| Header type | {{Glossary("Request header")}} |
|---|---|
| {{Glossary("Forbidden header name")}} | yes |
Syntax
Directives
<method>
: One of the HTTP request methods, for example {{HTTPMethod("GET")}}, {{HTTPMethod("POST")}}, or {{HTTPMethod("DELETE")}}.
Examples
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
{{HTTPHeader("Access-Control-Request-Headers")}}