diff options
Diffstat (limited to 'files/zh-cn/web/http/headers/sec-fetch-dest')
-rw-r--r-- | files/zh-cn/web/http/headers/sec-fetch-dest/index.html | 133 |
1 files changed, 133 insertions, 0 deletions
diff --git a/files/zh-cn/web/http/headers/sec-fetch-dest/index.html b/files/zh-cn/web/http/headers/sec-fetch-dest/index.html new file mode 100644 index 0000000000..df8cfdff1f --- /dev/null +++ b/files/zh-cn/web/http/headers/sec-fetch-dest/index.html @@ -0,0 +1,133 @@ +--- +title: Sec-Fetch-Dest +slug: Web/HTTP/Headers/Sec-Fetch-Dest +translation_of: Web/HTTP/Headers/Sec-Fetch-Dest +--- +<p>{{HTTPSidebar}}{{Draft}}</p> + +<p><strong><code>Sec-Fetch-Dest</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>yes, since it has prefix <code>Sec-</code></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-Dest: audio +Sec-Fetch-Dest: audioworklet +Sec-Fetch-Dest: document +Sec-Fetch-Dest: embed +Sec-Fetch-Dest: empty +Sec-Fetch-Dest: font +Sec-Fetch-Dest: image +Sec-Fetch-Dest: manifest +Sec-Fetch-Dest: nested-document +Sec-Fetch-Dest: object +Sec-Fetch-Dest: paintworklet +Sec-Fetch-Dest: report +Sec-Fetch-Dest: script +Sec-Fetch-Dest: serviceworker +Sec-Fetch-Dest: sharedworker +Sec-Fetch-Dest: style +Sec-Fetch-Dest: track +Sec-Fetch-Dest: video +Sec-Fetch-Dest: worker +Sec-Fetch-Dest: xslt +Sec-Fetch-Dest: audioworklet +Sec-Fetch-Dest: audioworklet +</pre> + +<h2 id="值">值</h2> + +<dl> + <dt><code>audio</code></dt> + <dd></dd> + <dt><code>audioworklet</code></dt> + <dd></dd> + <dt><code>document</code></dt> + <dd></dd> + <dt><code>embed</code></dt> + <dd></dd> + <dt><code>empty</code></dt> + <dd></dd> + <dt><code>font</code></dt> + <dd></dd> + <dt><code>image</code></dt> + <dd></dd> + <dt><code>manifest</code></dt> + <dd></dd> + <dt><code>object</code></dt> + <dd></dd> + <dt><code>paintworklet</code></dt> + <dd></dd> + <dt><code>report</code></dt> + <dd></dd> + <dt><code>script</code></dt> + <dd></dd> + <dt><code>serviceworker</code></dt> + <dd></dd> + <dt><code>sharedworker</code></dt> + <dd></dd> + <dt><code>style</code></dt> + <dd></dd> + <dt><code>track</code></dt> + <dd></dd> + <dt><code>video</code></dt> + <dd></dd> + <dt><code>worker</code></dt> + <dd></dd> + <dt><code>xslt</code></dt> + <dd></dd> + <dt><code>nested-document</code></dt> + <dd></dd> +</dl> + +<h2 id="示例">示例</h2> + +<p>TODO</p> + +<h2 id="规范说明">规范说明</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">规范</th> + <th scope="col">标题</th> + </tr> + </thead> + <tbody> + <tr> + <td><a href="https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-dest-header">Fetch Metadata Request Headers</a></td> + <td>The Sec-Fetch-Dest HTTP Request Header</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div class="hidden"></div> + +<div class="hidden">此页面上的兼容性表由结构化数据生成。如果您想对数据做出贡献,请查看<a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> 并给我们发送拉取请求。</div> + +<p>{{Compat("http.headers.Sec-Fetch-Dest")}}</p> + +<h2 id="参阅">参阅</h2> + +<ul> + <li>{{HTTPHeader("Sec-Fetch-Mode")}}</li> + <li>{{HTTPHeader("Sec-Fetch-Site")}}</li> + <li>{{HTTPHeader("Sec-Fetch-User")}}</li> +</ul> |