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>
指令
示例
http
Access-Control-Request-Method: POST
规范
Specification |
---|
Fetch Standard # http-access-control-request-method |
浏览器兼容性
BCD tables only load in the browser