Access-Control-Allow-Methods

响应首部 Access-Control-Allow-Methods 在对 preflight request.(预检请求)的应答中明确了客户端所要访问的资源允许使用的方法或方法列表。

报头类型 Response header
Forbidden header name no

语法

Access-Control-Allow-Methods: <method>, <method>, ...

指令

<method>

用逗号隔开的允许使用的 HTTP request methods 列表。

例子

Access-Control-Allow-Methods: POST, GET, OPTIONS

规范

Specification
Fetch Standard
# http-access-control-allow-methods

浏览器兼容性

BCD tables only load in the browser

兼容性注解

查看更多