From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../web/http/headers/sec-fetch-mode/index.html | 87 ++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 files/zh-cn/web/http/headers/sec-fetch-mode/index.html (limited to 'files/zh-cn/web/http/headers/sec-fetch-mode') diff --git a/files/zh-cn/web/http/headers/sec-fetch-mode/index.html b/files/zh-cn/web/http/headers/sec-fetch-mode/index.html new file mode 100644 index 0000000000..489941ca22 --- /dev/null +++ b/files/zh-cn/web/http/headers/sec-fetch-mode/index.html @@ -0,0 +1,87 @@ +--- +title: Sec-Fetch-Mode +slug: Web/HTTP/Headers/Sec-Fetch-Mode +translation_of: Web/HTTP/Headers/Sec-Fetch-Mode +--- +

{{HTTPSidebar}}{{Draft}}

+ +

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

+ + + + + + + + + + + + + + + + +
Header type{{Glossary("Fetch Metadata Request Header")}}
{{Glossary("Forbidden header name")}}只要包含前缀 Sec- 都属于应用程序禁止修改的HTTP消息头,用户代理保留全部对它们的控制权
{{Glossary("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
+
+
+ +

示例

+ +

暂时没有内容

+ +

规范

+ + + + + + + + + + + + + + +
SpecificationTitle
Fetch Metadata Request HeadersThe Sec-Fetch-Mode HTTP Request Header
+ +

浏览器兼容性

+ + + +

{{Compat("http.headers.Sec-Fetch-Mode")}}

+ +

另请参阅

+ + -- cgit v1.2.3-54-g00ecf