Accept-CH
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
HTTP Accept-CH
回應標頭可以由伺服器設定,以指定用戶在後續請求中應包含哪些用戶端提示標頭。為了確保用戶端提示能夠可靠地傳送,應該對所有安全請求持久化 Accept-CH
標頭。
標頭類型 | 回應標頭 |
---|---|
禁止修改的標頭 | 否 |
CORS 安全清單回應標頭 | 否 |
語法
http
Accept-CH: <client-hints-headers>
// 用戶端提示標頭,以逗號分隔的列表
Accept-CH: <ch-header-one>, <ch-header-two>
範例
用戶端提示回應標頭
規範
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.