此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。
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 2015年7月.
Access-Control-Request-Method
请求标头会由浏览器在发出预检请求时使用,通知服务器在实际请求中发出时将会采用哪种HTTP 方法。此标头是必需的,因为预检请求总是采用OPTIONS
方法,这与实际请求所使用的方法并不相同。
In this article
语法
http
Access-Control-Request-Method: <method>
指令
示例
http
Access-Control-Request-Method: POST
规范
Specification |
---|
Fetch> # http-access-control-request-method> |
浏览器兼容性
Loading…