Access-Control-Request-Method

您正在阅读此内容的英文版本,因为该语系尚未翻译。 帮助我们翻译此文章吧!

请求头  Access-Control-Request-Method 出现于 preflight request (预检请求)中,用于通知服务器在真正的请求中会采用哪种  HTTP 方法。因为预检请求所使用的方法总是 OPTIONS ,与实际请求所使用的方法不一样,所以这个请求头是必要的。
Header type Request header
Forbidden header name yes

语法

Access-Control-Request-Method: <method>

指令

<method>
一种 HTTP请求方法 , 例如 GETPOSTDELETE

示例

Access-Control-Request-Method: POST

规范

Specification Status Comment
Fetch
Access-Control-Request-Method
Living Standard Initial definition.

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Access-Control-Request-MethodChrome Full support 4Edge Full support 12Firefox Full support 3.5IE Full support 10Opera Full support 12Safari Full support 4WebView Android Full support 2Chrome Android Full support YesFirefox Android Full support 4Opera Android Full support 12Safari iOS Full support 3.2Samsung Internet Android Full support Yes

Legend

Full support  
Full support

相关内容