Table of Content
Sec-CH-UA-Platform header is a member of Structured Headers for Client Hints. It is aimed at providing hints that assist servers to optimize responses based on the device's software and hardware configuration. Specifically, this header tells the server about the platform of the User-Agent (the browser or tool making the requests) to enable content adaptation based on specific platform needs.
<platform> is typically the operating system of user agent. For example, "Windows", "iOS", "Android", etc.
Sec-CH-UA-Platform has no specific directives. Its value part should contain a string with the platform’s brand.
Sec-CH-UA-Platform: "Windows" Sec-CH-UA-Platform: "iOS" Sec-CH-UA-Platform: "Android"
How to modify Sec-CH-UA-Platform header
ModHeader is a Google Chrome extension that can modify HTTP requests headers. It can be used to modify the
Sec-CH-UA-Platform header to test how your servers behave on receiving requests from different platforms.
Here's how to use it:
- Install ModHeader from the Chrome Web Store.
- Click on the ModHeader icon.
Sec-CH-UA-Platformin the 'Response header' section.
- Below it, input the platform string you want to mimic, like "iOS".
Such modification can help in testing and debugging, especially to ensure that your server's responses are adapted correctly for different platforms.