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 Request-Header wird von Browsern verwendet, wenn sie eine Preflight-Anfrage stellen, 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 tatsächliche Anfrage verwendet.

Header-Typ Request-Header
Verbotener Header-Name Ja

Syntax

http
Access-Control-Request-Method: <method>

Direktiven

<method>

Eine HTTP-Anfragemethode; zum Beispiel GET, POST oder DELETE.

Beispiele

http
Access-Control-Request-Method: POST

Spezifikationen

Specification
Fetch
# http-access-control-request-method

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Access-Control-Request-Method

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

Siehe auch