Access-Control-Request-Method header
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
The HTTPAccess-Control-Request-Methodrequest header is used by browsers when issuing apreflight request to let the server know whichHTTP method will be used when the actual request is made.This header is necessary because the preflight request is always anOPTIONS and doesn't use the same method as the actual request.
| Header type | Request header |
|---|---|
| Forbidden request header | Yes |
In this article
Syntax
http
Access-Control-Request-Method: <method>Directives
<method>AnHTTP request method; for example,
GET,POST, orDELETE.
Examples
http
Access-Control-Request-Method: POSTSpecifications
| Specification |
|---|
| Fetch> # http-access-control-request-method> |