diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/http/headers/sec-fetch-mode | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/http/headers/sec-fetch-mode')
-rw-r--r-- | files/zh-cn/web/http/headers/sec-fetch-mode/index.html | 87 |
1 files changed, 87 insertions, 0 deletions
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 +--- +<p>{{HTTPSidebar}}{{Draft}}</p> + +<p><strong><code>Sec-Fetch-Mode</code></strong> 获取元数据标头表明了一个请求的模式。</p> + +<table class="properties"> + <tbody> + <tr> + <th scope="row">Header type</th> + <td>{{Glossary("Fetch Metadata Request Header")}}</td> + </tr> + <tr> + <th scope="row">{{Glossary("Forbidden header name")}}</th> + <td>只要包含前缀 <code>Sec-</code> 都属于应用程序禁止修改的HTTP消息头,用户代理保留全部对它们的控制权</td> + </tr> + <tr> + <th scope="row">{{Glossary("CORS-safelisted request header")}}</th> + <td></td> + </tr> + </tbody> +</table> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox notranslate">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 +</pre> + +<h2 id="值">值</h2> + +<dl> + <dt><code>cors</code></dt> + <dd></dd> + <dt><code>navigate</code></dt> + <dd></dd> + <dt><code>nested-navigate</code></dt> + <dd></dd> + <dt><code>no-cors</code></dt> + <dd></dd> + <dt><code>same-origin</code></dt> + <dd></dd> + <dt><code>websocket</code></dt> + <dd></dd> +</dl> + +<h2 id="示例">示例</h2> + +<p>暂时没有内容</p> + +<h2 id="规范">规范</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Specification</th> + <th scope="col">Title</th> + </tr> + </thead> + <tbody> + <tr> + <td><a href="https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-mode-header">Fetch Metadata Request Headers</a></td> + <td>The Sec-Fetch-Mode HTTP Request Header</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + + + +<p>{{Compat("http.headers.Sec-Fetch-Mode")}}</p> + +<h2 id="另请参阅">另请参阅</h2> + +<ul> + <li>{{HTTPHeader("Sec-Fetch-Site")}}</li> + <li>{{HTTPHeader("Sec-Fetch-User")}}</li> + <li>{{HTTPHeader("Sec-Fetch-Dest")}}</li> +</ul> |