新上線Plus 方案和 API 與 MCP 已上線:在你自己的系統中呼叫 175 個工具。
100www

工具 39 · C12 · 編碼 / 開發 · 2026 年 11 月更新

HTTP 標頭參考

搜尋常見 HTTP 標頭,查看用途、分類和範例值。

瀏覽器 免費 免註冊
工作原理
100www.dev/tools/http-header-reference
Content-Security-PolicySecurity

Restricts which sources scripts, styles, images and frames may load.

default-src 'self'; img-src 'self' https: data:
Strict-Transport-SecuritySecurity

Forces HTTPS for future visits and can request preload.

max-age=31536000; includeSubDomains; preload
X-Content-Type-OptionsSecurity

Stops MIME sniffing.

nosniff
X-Frame-OptionsSecurity

Legacy clickjacking protection; frame-ancestors supersedes it.

DENY
Referrer-PolicyPrivacy

Controls how much referrer information is sent.

strict-origin-when-cross-origin
Permissions-PolicyPrivacy

Disables browser features the page does not need.

camera=(), microphone=(), geolocation=()
Cache-ControlCaching

Controls browser and CDN caching.

public, max-age=3600, s-maxage=86400
ETagCaching

Opaque validator for conditional requests.

"abc123"
VaryCaching

Selects cache variants by request header.

Accept-Encoding
Content-EncodingPerformance

Declares the compression applied to the body.

br
Content-LengthMetadata

Body size in bytes.

12345
Content-TypeMetadata

Declares the media type and charset.

text/html; charset=utf-8
LocationRedirects

Target of a 3xx redirect.

https://example.com/new
Access-Control-Allow-OriginCORS

Declares which origins may read the response.

https://app.example.com
Cross-Origin-Opener-PolicySecurity

Isolates the browsing context.

same-origin
Cross-Origin-Resource-PolicySecurity

Restricts which sites may embed the resource.

same-origin

這個工具做什麼

HTTP 標頭承載安全策略、快取、內容類型、CORS 與計時資訊。快速參考有助閱讀回應或撰寫設定。

工作原理

工具在一組精選常見標頭中查詢,回傳用途與範例值。

工具回傳用途與可安全作為起點的範例值。

依應用調整範例。一個網站有效的標頭在另一個網站可能出問題,尤其是 CSP 與 CORS。

什麼時候用

  • 解釋掃描結果中的標頭。
  • 起草安全標頭設定。

術語表

回應標頭
伺服器隨回應送出的中繼資料。
CORS
控制跨來源瀏覽器讀取的規則。
CSP
限制頁面可載入哪些指令碼、樣式和其他資源的回應標頭。

常見問題

這是完整 RFC 清單嗎?+

不是,是精選的安全、快取與 CORS 標頭。

範例可直接上線嗎?+

可作為起點,需依應用調整。

哪些標頭對安全最重要?+

CSP、HSTS、X-Content-Type-Options、Referrer-Policy、Permissions-Policy 與框架保護是常見基線。

加標頭一定能提升安全嗎?+

不,錯誤設定的 CSP 或 HSTS 可能破壞網站或鎖死使用者,部署前要測試。

為什麼包含 Cache-Control 與 Vary?+

快取錯誤會導致過期或錯誤語言回應,這是信任與正確性問題,不只是效能。

API 與 MCP

沒有 API 端點

此工具完全在瀏覽器中執行,不提供 REST API 或 MCP。

可分享的結果

https://100www.dev/tw/tools/http-header-reference?q=Content-Security-Policy

100www

100www 工程團隊

編輯

審核:Steve · · 回報錯誤

從 100www 探針網路測試;結果會因位置與網路而異。