files/en-us/web/http/reference/headers/sec-fetch-dest/index.md
The HTTP Sec-Fetch-Dest {{Glossary("fetch metadata request header")}} indicates the request's destination.
That is the initiator of the original fetch request, which is where (and how) the fetched data will be used.
This allows servers to determine whether to service a request based on whether it is appropriate for how it is expected to be used. For example, a request with an audio destination should request audio data, not some other type of resource (for example, a document that includes sensitive user information).
Sec-Fetch-Dest: audio
Sec-Fetch-Dest: audioworklet
Sec-Fetch-Dest: document
Sec-Fetch-Dest: embed
Sec-Fetch-Dest: empty
Sec-Fetch-Dest: fencedframe
Sec-Fetch-Dest: font
Sec-Fetch-Dest: frame
Sec-Fetch-Dest: iframe
Sec-Fetch-Dest: image
Sec-Fetch-Dest: json
Sec-Fetch-Dest: manifest
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: webidentity
Sec-Fetch-Dest: worker
Sec-Fetch-Dest: xslt
Servers should ignore this header if it contains any other value.
[!NOTE] These directives correspond to the values returned by {{domxref("Request.destination")}}.
audio
audioworklet
document
embed
empty
fencedframe {{experimental_inline}}
font
frame
iframe
image
json
type: "json" attribute.manifest
object
paintworklet
report
script
serviceworker
sharedworker
style
track
video
webidentity
worker
xslt
A cross-site request generated by an {{HTMLElement("img")}} element would result in a request with the following HTTP request headers (note that the destination is image):
Sec-Fetch-Dest: image
Sec-Fetch-Mode: no-cors
Sec-Fetch-Site: cross-site
{{Specifications}}
{{Compat}}