Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zh-TW]: Sync with fetch spec for Forbidden request header #26254

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ l10n:

如果沒有使用此設定 {{HTTPHeader("Accept")}} 標頭,則在呼叫 {{domxref("XMLHttpRequest.send", "send()")}} 時,將隨請求傳送類型為「`*/*`」 的 `Accept` 標頭。

出於安全原因,有幾個由使用者代理管控的{{Glossary("Forbidden_header_name", "禁止的請求標頭")}}。任何嘗試從前端 JavaScript 程式碼中設置這些標頭的值之行為都會被忽略,且不會發出警告或錯誤。
出於安全原因,有幾個由使用者代理管控的{{Glossary("Forbidden request header", "禁止的請求標頭")}}。任何嘗試從前端 JavaScript 程式碼中設置這些標頭的值之行為都會被忽略,且不會發出警告或錯誤。

此外,可以在請求中添加 [`Authorization`](/zh-TW/docs/Web/HTTP/Headers/Authorization) HTTP 標頭,但如果請求被跨域重定向,這個標頭將會被移除。

Expand Down
4 changes: 2 additions & 2 deletions files/zh-tw/web/http/headers/accept-ch/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Accept-CH
slug: Web/HTTP/Headers/Accept-CH
l10n:
sourceCommit: 92b03e46cef6be37de60799363e3e33e3415b491
sourceCommit: 442db82028668b17b888ee439468ae2ac9d589a5
---

{{HTTPSidebar}}{{securecontext_header}}
Expand All @@ -16,7 +16,7 @@ HTTP **`Accept-CH`** {{Glossary("response header", "回應標頭")}}可以由伺
<td>{{Glossary("Response header", "回應標頭")}}</td>
</tr>
<tr>
<th scope="row">{{Glossary("Forbidden header name", "禁止修改的標頭")}}</th>
<th scope="row">{{Glossary("Forbidden request header", "禁止的請求標頭")}}</th>
<td>否</td>
</tr>
<tr>
Expand Down
4 changes: 2 additions & 2 deletions files/zh-tw/web/http/headers/accept-encoding/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Accept-Encoding
slug: Web/HTTP/Headers/Accept-Encoding
l10n:
sourceCommit: f341bd4728d3448faf6b9fc3b45980c35c067f25
sourceCommit: 442db82028668b17b888ee439468ae2ac9d589a5
---

{{HTTPSidebar}}
Expand All @@ -26,7 +26,7 @@ HTTP **`Accept-Encoding`** {{glossary("request header", "請求")}}和{{glossary
<td>{{Glossary("Request header", "請求標頭")}}、{{Glossary("Response header", "回應標頭")}}</td>
</tr>
<tr>
<th scope="row">{{Glossary("Forbidden header name", "禁止修改的標頭")}}</th>
<th scope="row">{{Glossary("Forbidden request header", "禁止的請求標頭")}}</th>
<td>是</td>
</tr>
</tbody>
Expand Down
4 changes: 2 additions & 2 deletions files/zh-tw/web/http/headers/accept-language/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Accept-Language
slug: Web/HTTP/Headers/Accept-Language
l10n:
sourceCommit: 92b03e46cef6be37de60799363e3e33e3415b491
sourceCommit: 442db82028668b17b888ee439468ae2ac9d589a5
---

{{HTTPSidebar}}
Expand All @@ -22,7 +22,7 @@ HTTP **`Accept-Language`** {{Glossary("request header", "請求標頭")}}表示
<td>{{Glossary("Request header", "請求標頭")}}</td>
</tr>
<tr>
<th scope="row">{{Glossary("Forbidden header name", "禁止修改的標頭")}}</th>
<th scope="row">{{Glossary("Forbidden request header", "禁止的請求標頭")}}</th>
<td>否</td>
</tr>
<tr>
Expand Down
4 changes: 2 additions & 2 deletions files/zh-tw/web/http/headers/accept/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Accept
slug: Web/HTTP/Headers/Accept
l10n:
sourceCommit: f341bd4728d3448faf6b9fc3b45980c35c067f25
sourceCommit: 442db82028668b17b888ee439468ae2ac9d589a5
---

{{HTTPSidebar}}
Expand All @@ -17,7 +17,7 @@ HTTP **`Accept`** {{Glossary("request header", "請求標頭")}}和{{Glossary("r
<th scope="row">標頭類型</th>
<td>{{Glossary("Request header", "請求標頭")}}、{{Glossary("Response header", "回應標頭")}}</tr>
<tr>
<th scope="row">{{Glossary("Forbidden header name", "禁止修改的標頭")}}</th>
<th scope="row">{{Glossary("Forbidden request header", "禁止的請求標頭")}}</th>
<td>否</td>
</tr>
<tr>
Expand Down
4 changes: 2 additions & 2 deletions files/zh-tw/web/http/headers/age/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Age
slug: Web/HTTP/Headers/Age
l10n:
sourceCommit: 92b03e46cef6be37de60799363e3e33e3415b491
sourceCommit: 442db82028668b17b888ee439468ae2ac9d589a5
---

{{HTTPSidebar}}
Expand All @@ -18,7 +18,7 @@ HTTP **`Age`** {{Glossary("response header", "回應標頭")}}表示物件在代
<td>{{Glossary("Response header", "回應標頭")}}</td>
</tr>
<tr>
<th scope="row">{{Glossary("Forbidden header name", "禁止修改的標頭")}}</th>
<th scope="row">{{Glossary("Forbidden request header", "禁止的請求標頭")}}</th>
<td>否</td>
</tr>
</tbody>
Expand Down
4 changes: 2 additions & 2 deletions files/zh-tw/web/http/headers/allow/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Allow
slug: Web/HTTP/Headers/Allow
l10n:
sourceCommit: 92b03e46cef6be37de60799363e3e33e3415b491
sourceCommit: 442db82028668b17b888ee439468ae2ac9d589a5
---

{{HTTPSidebar}}
Expand All @@ -16,7 +16,7 @@ HTTP **`Allow`** {{Glossary("response header", "回應標頭")}}列出了資源
<td>{{Glossary("Response header", "回應標頭")}}</td>
</tr>
<tr>
<th scope="row">{{Glossary("Forbidden header name", "禁止修改的標頭")}}</th>
<th scope="row">{{Glossary("Forbidden request header", "禁止的請求標頭")}}</th>
<td>否</td>
</tr>
</tbody>
Expand Down
4 changes: 2 additions & 2 deletions files/zh-tw/web/http/headers/user-agent/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: User-Agent
slug: Web/HTTP/Headers/User-Agent
l10n:
sourceCommit: ed041385cf874deec203e820fd415bdcd6f98a19
sourceCommit: 442db82028668b17b888ee439468ae2ac9d589a5
---

{{HTTPSidebar}}
Expand All @@ -19,7 +19,7 @@ HTTP **User-Agent** {{Glossary("request header", "請求標頭")}}是一個讓
<td>{{Glossary("Request header", "請求標頭")}}</td>
</tr>
<tr>
<th scope="row">{{Glossary("Forbidden header name", "禁止修改的標頭")}}</th>
<th scope="row">{{Glossary("Forbidden request header", "禁止的請求標頭")}}</th>
<td>否</td>
</tr>
</tbody>
Expand Down
4 changes: 2 additions & 2 deletions files/zh-tw/web/http/headers/x-robots-tag/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: X-Robots-Tag
slug: Web/HTTP/Headers/X-Robots-Tag
l10n:
sourceCommit: 24d8a34da576f86b10923e426f66df48ab6201b9
sourceCommit: 442db82028668b17b888ee439468ae2ac9d589a5
---

{{HTTPSidebar}}
Expand All @@ -22,7 +22,7 @@ l10n:
<td>{{Glossary("Response header", "回應標頭")}}</td>
</tr>
<tr>
<th scope="row">{{Glossary("Forbidden header name", "禁用標頭名稱")}}</th>
<th scope="row">{{Glossary("Forbidden request header", "禁止的請求標頭")}}</th>
<td>否</td>
</tr>
</tbody>
Expand Down