请求首部 Access-Control-Request-Headers
出现于 preflight request (预检请求)中,用于通知服务器在真正的请求中会采用哪些请求首部。
语法
Access-Control-Request-Headers: <header-name>, <header-name>, ...
指令
- <header-name>
- 在实际请求中将要包含的一系列 HTTP 首部,以逗号分隔。
示例
Access-Control-Request-Headers: X-PINGOTHER, Content-Type
规范
浏览器兼容性
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Feature | Chrome | Firefox | Edge | Internet Explorer | Opera | Safari |
---|
Basic Support | 4 | 3.5 | 12 | 10 | 12 | 4 |
Feature | Android | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
---|
Basic Support | 2.1 | (Yes) | (Yes) | 1.0 | (Yes) | 12 | 3.2 |
相关内容
文档标签和贡献者