Sec-Fetch-Mode

翻译不完整。 请帮助我们翻译这篇文章!

草案
本页尚未完工.

Sec-Fetch-Mode 获取元数据标头表明了一个请求的模式。

Header type Fetch Metadata Request Header
Forbidden header name 只要包含前缀 Sec- 都属于应用程序禁止修改的HTTP消息头,用户代理保留全部对它们的控制权
CORS-safelisted request header

语法

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

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

示例

暂时没有内容

规范

Specification Title
Fetch Metadata Request Headers The Sec-Fetch-Mode HTTP Request Header

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Sec-Fetch-Mode
Experimental
Chrome Full support 76Edge Full support 79Firefox No support NoIE No support NoOpera Full support 63Safari No support NoWebView Android Full support 76Chrome Android Full support 76Firefox Android No support NoOpera Android Full support 54Safari iOS No support NoSamsung Internet Android No support No

Legend

Full support  
Full support
No support  
No support
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.

另请参阅