The Sec-Fetch-Dest
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 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).
Header type | Fetch Metadata Request Header |
---|---|
Forbidden header name | yes (prefix Sec- ) |
CORS-safelisted request header | no |