--- title: Sec-Fetch-Dest slug: Web/HTTP/Headers/Sec-Fetch-Dest translation_of: Web/HTTP/Headers/Sec-Fetch-Dest ---

{{HTTPSidebar}}{{Draft}}

Sec-Fetch-Dest 获取元数据标头指示请求的目的地,即如何使用获取的数据。

Header type {{Glossary("Fetch Metadata Request Header")}}
{{Glossary("Forbidden header name")}} yes, since it has prefix Sec-
{{Glossary("CORS-safelisted request header")}}

语法

Sec-Fetch-Dest: audio
Sec-Fetch-Dest: audioworklet
Sec-Fetch-Dest: document
Sec-Fetch-Dest: embed
Sec-Fetch-Dest: empty
Sec-Fetch-Dest: font
Sec-Fetch-Dest: image
Sec-Fetch-Dest: manifest
Sec-Fetch-Dest: nested-document
Sec-Fetch-Dest: object
Sec-Fetch-Dest: paintworklet
Sec-Fetch-Dest: report
Sec-Fetch-Dest: script
Sec-Fetch-Dest: serviceworker
Sec-Fetch-Dest: sharedworker
Sec-Fetch-Dest: style
Sec-Fetch-Dest: track
Sec-Fetch-Dest: video
Sec-Fetch-Dest: worker
Sec-Fetch-Dest: xslt
Sec-Fetch-Dest: audioworklet
Sec-Fetch-Dest: audioworklet

audio
audioworklet
document
embed
empty
font
image
manifest
object
paintworklet
report
script
serviceworker
sharedworker
style
track
video
worker
xslt
nested-document

示例

TODO

规范说明

规范 标题
Fetch Metadata Request Headers The Sec-Fetch-Dest HTTP Request Header

浏览器兼容性

{{Compat("http.headers.Sec-Fetch-Dest")}}

参阅