Access-Control-Request-Headers

请求头  Access-Control-Request-Headers 出现于 preflight request (预检请求)中,用于通知服务器在真正的请求中会采用哪些请求头。

报头类型 Request header
Forbidden header name yes

语法

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

指令

<header-name>
在实际请求中将要包含的一系列 HTTP 头,以逗号分隔。

示例

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

规范

规范 状态 注释
Fetch
Access-Control-Request-Headers
Living Standard Initial definition.

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Access-Control-Request-HeadersChrome Full support 4Edge Full support 12Firefox Full support 3.5IE Full support 10Opera Full support 12Safari Full support 4WebView Android Full support 2Chrome Android Full support YesFirefox Android Full support 4Opera Android Full support 12Safari iOS Full support 3.2Samsung Internet Android Full support Yes

Legend

Full support  
Full support

相关内容