Access-Control-Request-Method
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.
Der HTTP-Access-Control-Request-Method
-Anforderungsheader wird von Browsern verwendet, wenn eine Preflight-Anfrage gesendet wird, um dem Server mitzuteilen, welche HTTP-Methode bei der tatsächlichen Anfrage verwendet wird.
Dieser Header ist notwendig, weil die Preflight-Anfrage immer eine OPTIONS
ist und nicht die gleiche Methode wie die eigentliche Anfrage verwendet.
Header-Typ | Anforderungsheader |
---|---|
Verbotener Anforderungsheader | Ja |
Syntax
http
Access-Control-Request-Method: <method>
Direktiven
<method>
-
Eine HTTP-Anfragemethode, zum Beispiel
GET
,POST
oderDELETE
.
Beispiele
http
Access-Control-Request-Method: POST
Spezifikationen
Specification |
---|
Fetch # http-access-control-request-method |
Browser-Kompatibilität
BCD tables only load in the browser