此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

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 方法,这与实际请求所使用的方法并不相同。

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

语法

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

指令

<method>

一种 HTTP 请求方法,例如 GETPOSTDELETE

示例

http
Access-Control-Request-Method: POST

规范

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

浏览器兼容性

参见