aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/glossary/simple_header/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/glossary/simple_header/index.html')
-rw-r--r--files/zh-cn/glossary/simple_header/index.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/files/zh-cn/glossary/simple_header/index.html b/files/zh-cn/glossary/simple_header/index.html
new file mode 100644
index 0000000000..846fc193cd
--- /dev/null
+++ b/files/zh-cn/glossary/simple_header/index.html
@@ -0,0 +1,39 @@
+---
+title: 简单头部
+slug: Glossary/Simple_header
+tags:
+ - HTTP
+ - 简单头部
+ - 跨域
+translation_of: Glossary/Simple_header
+original_slug: Glossary/简单头部
+---
+<p>以下的 <a href="/en-US/docs/Web/HTTP/Headers">HTTP headers</a>都可以被认为是简单头部:</p>
+
+<ul>
+ <li>{{HTTPHeader("Accept")}},</li>
+ <li>{{HTTPHeader("Accept-Language")}},</li>
+ <li>{{HTTPHeader("Content-Language")}},</li>
+ <li>{{HTTPHeader("Content-Type")}}并且值是 <code>application/x-www-form-urlencoded</code>, <code>multipart/form-data</code>, 或者 <code>text/plain之一的(忽略参数)</code>.</li>
+</ul>
+
+<p>或者以下客户端头部之一的也可以被认为是简单头部:</p>
+
+<ul>
+ <li>{{HTTPHeader("DPR")}}</li>
+ <li>{{HTTPHeader("Downlink")}}</li>
+ <li>{{HTTPHeader("Save-Data")}}</li>
+ <li>{{HTTPHeader("Viewport-Width")}}</li>
+ <li>{{HTTPHeader("Width")}}</li>
+</ul>
+
+<p>当只包含简单头部时,一个请求则被视为简单请求并且在<a href="/en-US/docs/Glossary/CORS">CORS</a>中不需要发送{{glossary("preflight request")}}。</p>
+
+<h2 id="Learn_more">Learn more</h2>
+
+<ul>
+ <li><a href="/en-US/docs/Web/HTTP/Headers">HTTP 头部</a></li>
+ <li>{{Glossary("Simple response header")}}</li>
+ <li>{{Glossary("Forbidden header name")}}</li>
+ <li>{{Glossary("Request header")}}</li>
+</ul>