您正在阅读此内容的英文版本,因为该语系尚未翻译。 帮助我们翻译此文章吧!
请求头
Access-Control-Request-Method
出现于 preflight request (预检请求)中,用于通知服务器在真正的请求中会采用哪种 HTTP 方法。因为预检请求所使用的方法总是 OPTIONS
,与实际请求所使用的方法不一样,所以这个请求头是必要的。Header type | Request header |
---|---|
Forbidden header name | yes |
语法
Access-Control-Request-Method: <method>
指令
示例
Access-Control-Request-Method: POST
规范
Specification | Status | Comment |
---|---|---|
Fetch Access-Control-Request-Method |
Living Standard | Initial definition. |
浏览器兼容性
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Access-Control-Request-Method | Chrome Full support 4 | Edge Full support 12 | Firefox Full support 3.5 | IE Full support 10 | Opera Full support 12 | Safari Full support 4 | WebView Android Full support 2 | Chrome Android Full support Yes | Firefox Android Full support 4 | Opera Android Full support 12 | Safari iOS Full support 3.2 | Samsung Internet Android Full support Yes |
Legend
- Full support
- Full support