Accept-CH
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Accept-CH
標頭可以由伺服器設置,以指定用戶端應該在後續請求中包含哪些用戶端提示標頭。
標頭類型 | 回應標頭 |
---|---|
禁止修改的標頭 | 否 |
CORS 安全清單回應標頭 | 否 |
備註:
用戶端提示僅在安全來源(通過 TLS)上可訪問。應該對所有安全請求持久化 Accept-CH
標頭,以確保可靠地發送用戶端提示。
語法
http
Accept-CH: <comma separated list of client hint headers>
範例
http
Accept-CH: Viewport-Width, Width
Vary: Viewport-Width, Width
備註: 請根據接受的用戶端提示來改變回應。
規範
Specification |
---|
HTTP Client Hints # section-3.1 |
瀏覽器相容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Accept-CH client hint accept (response) header | ||||||||||||
Content-DPR token | ||||||||||||
DPR token | ||||||||||||
Device-Memory token | ||||||||||||
Sec-CH-UA token | ||||||||||||
Sec-CH-UA-Arch token | ||||||||||||
Sec-CH-UA-Full-Version token | ||||||||||||
Sec-CH-UA-Mobile token | ||||||||||||
Sec-CH-UA-Model token | ||||||||||||
Sec-CH-UA-Platform token | ||||||||||||
Sec-CH-UA-Platform-Version token | ||||||||||||
Viewport-Width token | ||||||||||||
Width token |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.
- Non-standard. Check cross-browser support before using.
- Deprecated. Not for use in new websites.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.