Accept-CH header
Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.
The HTTPAccept-CHresponse header may be set by a server to specify whichclient hint headers should be included by the client in subsequent requests.To ensure client hints are sent reliably, theAccept-CH header should be persisted for all secure requests.
| Header type | Response header |
|---|---|
| CORS-safelisted response header | No |
In this article
Syntax
http
Accept-CH: <client-hints-headers>// Client hint headers in a comma-separated listAccept-CH: <ch-header-one>, <ch-header-two>Examples
>Client hint response headers
The following response headers indicate that the server acceptsSec-CH-Viewport-Width andSec-CH-Widthdevice client hints in subsequent requests.TheVary header indicates which values were used tovary the response based on the accepted client hints.
http
Accept-CH: Sec-CH-Viewport-Width, Sec-CH-WidthVary: Sec-CH-Viewport-Width, Sec-CH-WidthSpecifications
| Specification |
|---|
| HTTP Client Hints> # section-3.1> |