diff options
Diffstat (limited to 'files/zh-cn/web/http/headers/sec-fetch-user/index.html')
-rw-r--r-- | files/zh-cn/web/http/headers/sec-fetch-user/index.html | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/files/zh-cn/web/http/headers/sec-fetch-user/index.html b/files/zh-cn/web/http/headers/sec-fetch-user/index.html new file mode 100644 index 0000000000..c5a81d04ce --- /dev/null +++ b/files/zh-cn/web/http/headers/sec-fetch-user/index.html @@ -0,0 +1,77 @@ +--- +title: Sec-Fetch-User +slug: Web/HTTP/Headers/Sec-Fetch-User +translation_of: Web/HTTP/Headers/Sec-Fetch-User +--- +<p>{{HTTPSidebar}}{{Draft}}</p> + +<p><strong><code>Sec-Fetch-User</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-User: ?0 +Sec-Fetch-User: ?1 +</pre> + +<h2 id="值">值</h2> + +<p>该值是一个布尔结构化的标头。</p> + +<dl> + <dt><code>?0</code></dt> + <dd>导航请求由用户激活触发。</dd> + <dt><code>?1</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-user-header">Fetch Metadata Request Headers</a></td> + <td>The Sec-Fetch-User HTTP Request Header</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + + + +<p>{{Compat("http.headers.Sec-Fetch-User")}}</p> + +<h2 id="另请参阅">另请参阅</h2> + +<ul> + <li>{{HTTPHeader("Sec-Fetch-Dest")}}</li> + <li>{{HTTPHeader("Sec-Fetch-Mode")}}</li> + <li>{{HTTPHeader("Sec-Fetch-Site")}}</li> +</ul> |