Sec-CH-UA-Platform header
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.
Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.
The HTTPSec-CH-UA-Platformrequest header is auser agent client hint which provides the platform or operating system on which the user agent is running.For example: "Windows" or "Android".
Sec-CH-UA-Platform is alow entropy hint.Unless blocked by a user agent permission policy, it is sent by default (without the server opting in by sendingAccept-CH).
| Header type | Request header,Client hint |
|---|---|
| Forbidden request header | Yes (Sec- prefix) |
In this article
Syntax
Sec-CH-UA-Platform: <platform>Directives
<platform>One of the following strings:
"Android","Chrome OS","Chromium OS","iOS","Linux","macOS","Windows", or"Unknown".
Examples
>Using Sec-CH-UA-Platform
AsSec-CH-UA-Platform is alow entropy hint it is typically sent in all requests.A browser running on a macOS computer might add the following header to all requests.
Sec-CH-UA-Platform: "macOS"Specifications
| Specification |
|---|
| User-Agent Client Hints> # sec-ch-ua-platform> |