Access-Control-Request-Headers

Access-Control-Request-Headers

Access-Control-Request-Headers发出请求时报头用于预检请求让服务器知道哪些 HTTP 头的实际请求时将被使用。

Header typeRequest header
Forbidden header nameyes

语法

Access-Control-Request-Headers: <header-name>, <header-name>, ...

指令

<header-name> 请求中包含的 HTTP 的 header 的逗号分隔列表。

例子

Access-Control-Request-Headers: X-PINGOTHER, Content-Type

规范

SpecificationStatusComment
FetchThe definition of 'Access-Control-Request-Headers' in that specification.Living StandardInitial definition.

浏览器兼容性

FeatureChromeFirefoxEdgeInternet ExplorerOperaSafari
Basic Support43.51210124

FeatureAndroidChrome for AndroidEdge mobileFirefox for AndroidIE mobileOpera AndroidiOS Safari
Basic Support2.1(Yes)(Yes)1.0(Yes)123.2