MớiGói Plus, API và MCP đã ra mắt — chạy 175 công cụ từ hệ thống của bạn.
100www

Công cụ 39 · C12 · Mã hóa / Phát triển · Cập nhật tháng 11/2026

Tham chiếu header HTTP

Tra cứu HTTP header phổ biến với mục đích, phân loại và ví dụ.

Trình duyệt Miễn phí Không cần đăng ký
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

Công cụ này làm gì

Header mang chính sách bảo mật, cache, kiểu nội dung, CORS và timing. Tài liệu nhanh giúp đọc response hoặc viết cấu hình.

Cách hoạt động

Công cụ tra trong danh sách chọn lọc và trả mục đích kèm ví dụ.

Công cụ trả mục đích và giá trị ví dụ an toàn làm điểm bắt đầu.

Hãy điều chỉnh ví dụ cho ứng dụng. Header hợp lệ trên site này có thể làm hỏng site khác, nhất là CSP và CORS.

Khi nào dùng

  • Giải thích header từ kết quả quét.
  • Soạn bộ header bảo mật.

Thuật ngữ

Header phản hồi
Metadata máy chủ gửi kèm.
CORS
Quy tắc đọc cross-origin.
CSP
Tiêu đề giới hạn script và tài nguyên được phép tải.

Câu hỏi thường gặp

Có đủ mọi header RFC?+

Không, chỉ bộ phổ biến chọn lọc.

Ví dụ dùng được ngay?+

Là điểm khởi đầu, cần chỉnh.

Header nào quan trọng nhất cho bảo mật?+

CSP, HSTS, X-Content-Type-Options, Referrer-Policy, Permissions-Policy và bảo vệ frame là nền tảng phổ biến.

Thêm header luôn cải thiện bảo mật?+

Không. CSP hoặc HSTS cấu hình sai có thể làm hỏng site hoặc khóa người dùng; test trước khi triển khai.

Vì sao gồm Cache-Control và Vary?+

Lỗi cache tạo phản hồi cũ hoặc sai ngôn ngữ, là vấn đề tin cậy và chính xác, không chỉ hiệu năng.

API và MCP

Không có endpoint API

Công cụ này chạy hoàn toàn trong trình duyệt, không có REST API hoặc MCP.

Kết quả có thể chia sẻ

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

100www

Kỹ thuật 100www

Biên tập

Được duyệt bởi Steve · · Báo lỗi

Được kiểm tra từ mạng đầu dò 100www; kết quả thay đổi theo vị trí và mạng.