aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/http/headers/sec-fetch-dest/index.html
blob: 97f21fff9b4360920d6c9bc2e25b38b3894a7f10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
---
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>

<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>