diff options
author | Cyl2015113110 <42596529+Cyl2015113110@users.noreply.github.com> | 2021-10-12 21:43:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-12 21:43:09 +0800 |
commit | 45d7a33713674aeacbf236f9154099f2ff307291 (patch) | |
tree | b2f97a58eb4bc263b884ec853cf6a678feff3d44 /files/zh-cn/web/http | |
parent | dfd589e43fc6c94f3bb8b522c03496508f7d962b (diff) | |
download | translated-content-45d7a33713674aeacbf236f9154099f2ff307291.tar.gz translated-content-45d7a33713674aeacbf236f9154099f2ff307291.tar.bz2 translated-content-45d7a33713674aeacbf236f9154099f2ff307291.zip |
translate notecard (#2375)
* Update index.html
* Update the origin translation
The more important Origin node is not translated
Diffstat (limited to 'files/zh-cn/web/http')
-rw-r--r-- | files/zh-cn/web/http/headers/origin/index.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/files/zh-cn/web/http/headers/origin/index.html b/files/zh-cn/web/http/headers/origin/index.html index 65f988db25..bdf6644864 100644 --- a/files/zh-cn/web/http/headers/origin/index.html +++ b/files/zh-cn/web/http/headers/origin/index.html @@ -6,6 +6,14 @@ translation_of: Web/HTTP/Headers/Origin <div>{{HTTPSidebar}}</div> <p>请求首部字段 <strong><code>Origin</code></strong> 指示了请求来自于哪个站点。该字段仅指示服务器名称,并不包含任何路径信息。该首部用于 {{Glossary("CORS")}} 请求或者 {{HTTPMethod("POST")}} 请求。除了不包含路径信息,该字段与 {{HTTPHeader("Referer")}} 首部字段相似。</p> +<div class="note notecard"> + <p><strong>Note: </strong>基本上,浏览器会将Origin请求头添加到:</p> + <ul> + <li>所有的跨域请求</li> + <li>除GET或HEAD请求外的同源请求(即它们被添加到同源POST、OPTIONS、PUT、PATCH和DELETE请求中)</li> + </ul> + <p><strong>浏览器会将Origin请求头添加到所有跨域的请求中,除GET或HEAD请求外的同源请求。如果在no-cors模式下发出跨源GET或HEAD请求,则不会添加Origin头</strong></p> +</div> <table class="properties"> <tbody> |