Accept-CH

Secure context: This feature is available only in secure contexts (en-US) (HTTPS), in some or all supporting browsers.

Accept-CH 標頭可以由伺服器設置,以指定客戶端應該在後續請求中包含哪些用戶端提示 (en-US)標頭。

標頭類型 回應標頭 (en-US)
禁止修改的標頭 (en-US)
CORS 安全清單回應標頭 (en-US)

備註: 客戶端提示僅在安全來源(通過 TLS)上可訪問。應該對所有安全請求持久化 Accept-CH(和 Accept-CH-Lifetime)標頭,以確保可靠地發送客戶端提示。

語法

http
Accept-CH: <comma separated list of client hint headers>

範例

http
Accept-CH: Viewport-Width, Width
Vary: Viewport-Width, Width

備註: 請根據接受的客戶端提示來改變回應 (en-US)

規範

Specification
HTTP Client Hints
# section-3.1

瀏覽器相容性

BCD tables only load in the browser

參見