fetch_metadata_headers.md

July 16, 2021 ยท View on GitHub

Fetch metadata request headers Back

Those kinds of request headers has provided information about the context from which the request originated, and servers can handle this depends on their requirements.

1. Sec-Fetch-Site

It is a request header that indicates the relationship between a request initiator's origin and its target's origin. It is a Structured Header whose value is a token with possible values cross-site, same-origin, same-site, and none.

2. Sec-Fetch-Mode

It is a request header that indicates the request's mode to a server. It is a Structured Header whose value is a token with possible values cors, navigate, no-cors, same-origin, and websocket.

3. Sec-Fetch-User

It is a request header that indicates whether a navigation request was triggered by user activation. It is a Structured Header whose value is a boolean so possible values are ?0 for false and ?1 for true.

4. Sec-Fetch-Dest

It is a request header that indicates the request's destination to a server. It is a Structured Header whose value is a token with possible values audio, audioworklet, document, embed, empty, font, image, manifest, object, paintworklet, report, script, serviceworker, sharedworker, style, track, video, worker, and xslt.