--- title: Access-Control-Request-Headers slug: Web/HTTP/Headers/Access-Control-Request-Headers tags: - 跨域资源共享 translation_of: Web/HTTP/Headers/Access-Control-Request-Headers ---
请求头 Access-Control-Request-Headers
出现于 {{glossary("preflight request")}} (预检请求)中,用于通知服务器在真正的请求中会采用哪些请求头。
报头类型 | {{Glossary("Request header")}} |
---|---|
{{Glossary("Forbidden header name")}} | yes |
Access-Control-Request-Headers: <header-name>, <header-name>, ...
Access-Control-Request-Headers: X-PINGOTHER, Content-Type
规范 | 状态 | 注释 |
---|---|---|
{{SpecName('Fetch','#http-access-control-request-headers', 'Access-Control-Request-Headers')}} | {{Spec2("Fetch")}} | Initial definition. |
{{Compat("http.headers.Access-Control-Request-Headers")}}