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.

Access-Control-Request-Method 请求标头会由浏览器在发出预检请求时使用,通知服务器在实际请求中发出时将会采用哪种 HTTP 方法。此标头是必需的,因为预检请求总是采用 OPTIONS 方法,这与实际请求所使用的方法并不相同。

标头类型 请求标头
禁止修改的标头

语法

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

指令

<method>

一种 HTTP 请求方法,例如 GETPOSTDELETE

示例

http
Access-Control-Request-Method: POST

规范

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

浏览器兼容性

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

参见