Headers: Accept-CH
Accept-CH header
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The HTTP Accept-CH response header may be set by a server to specify which client hint headers should be included by the client in subsequent requests. To ensure client hints are sent reliably, the Accept-CH header should be persisted for all secure requests.
| Header type | Response header |
|---|---|
| CORS-safelisted response header | No |
Syntax
Accept-CH: <client-hints-headers> // Client hint headers in a comma-separated list Accept-CH: <ch-header-one>, <ch-header-two>
Examples
>Client hint response headers
The following response headers indicate that the server accepts Sec-CH-Viewport-Width and Sec-CH-Width device client hints in subsequent requests. The Vary header indicates which values were used to vary the response based on the accepted client hints.
Accept-CH: Sec-CH-Viewport-Width, Sec-CH-Width Vary: Sec-CH-Viewport-Width, Sec-CH-Width
Specifications
| Specification |
|---|
| HTTP Client Hints> # section-3.1> |
Browser compatibility
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
Content-DPR |
46 | 79 | No | 33 | No | 46 | No | 33 | No | 5.0 | 46 | No |
DPR |
46 | 79 | No | 33 | No | 46 | No | 33 | No | 5.0 | 46 | No |
Device-Memory |
61 | 79 | No | 48 | No | 61 | No | 45 | No | 8.0 | 61 | No |
Sec-CH-DPR |
97 | 97 | No | 83 | No | 97 | No | 68 | No | 18.0 | 97 | No |
Sec-CH-Device-Memory |
97 | 97 | No | 83 | No | 97 | No | 68 | No | 18.0 | 97 | No |
Sec-CH-UA |
89 | 89 | No | 75 | No | 89 | No | 63 | No | 15.0 | 89 | No |
Sec-CH-UA-Arch |
89 | 89 | No | 75 | No | 89 | No | 63 | No | 15.0 | 89 | No |
Sec-CH-UA-Full-Version |
89 | 89 | No | 75 | No | 89 | No | 63 | No | 15.0 | 89 | No |
Sec-CH-UA-Mobile |
89 | 89 | No | 75 | No | 89 | No | 63 | No | 15.0 | 89 | No |
Sec-CH-UA-Model |
89 | 89 | No | 75 | No | 89 | No | 63 | No | 15.0 | 89 | No |
Sec-CH-UA-Platform |
89 | 89 | No | 75 | No | 89 | No | 63 | No | 15.0 | 89 | No |
Sec-CH-UA-Platform-Version |
89 | 89 | No | 75 | No | 89 | No | 63 | No | 15.0 | 89 | No |
Sec-CH-Viewport-Height |
105 | 105 | No | 91 | No | 105 | No | 72 | No | 20.0 | 105 | No |
Sec-CH-Viewport-Width |
97 | 97 | No | 83 | No | 97 | No | 68 | No | 18.0 | 97 | No |
Sec-CH-Width |
97 | 97 | No | 83 | No | 97 | No | 68 | No | 18.0 | 97 | No |
Viewport-Width |
46 | 79 | No | 33 | No | 46 | No | 33 | No | 5.0 | 46 | No |
Width |
46 | 79 | No | 33 | No | 46 | No | 33 | No | 5.0 | 46 | No |
Accept-CH |
46 | 79 | No | 33 | No | 46 | No | 33 | No | 5.0 | 46 | No |
See also
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-CH