The Sec-Fetch-Mode fetch metadata request header indicates the mode of the request.
Broadly speaking, this allows a server to distinguish between: requests originating from a user navigating between HTML pages, and requests to load images and other resources. For example, this header would contain navigate for top level navigation requests, while no-cors is used for loading an image.
| Header type | Fetch Metadata Request Header |
|---|---|
| Forbidden header name | yes (prefix Sec-) |
| CORS-safelisted request header | no |