Sec-Fetch-Mode

Draft

This page is not complete.

The Sec-Fetch-Mode fetch metadata header indicates the request's mode.

Header type Fetch Metadata Request Header
Forbidden header name yes, since it has prefix Sec-
CORS-safelisted request header

Syntax

Sec-Fetch-Mode: cors
Sec-Fetch-Mode: navigate
Sec-Fetch-Mode: nested-navigate
Sec-Fetch-Mode: no-cors
Sec-Fetch-Mode: same-origin
Sec-Fetch-Mode: websocket

Values

cors
navigate
nested-navigate
no-cors
same-origin
websocket

Examples

TODO

Specifications

Specification Status Comment
Fetch Metadata Request Headers
The definition of 'Sec-Fetch-Mode' in that specification.
Editor's Draft Initial definition

Browser compatibility

BCD tables only load in the browser

See also