Sec-CH-UA-Platform-Version Header

Table of Content

  • Syntax
  • Directives
  • Examples
  • Browser Compatibility
  • How to modify Sec-CH-UA-Platform-Version header The Sec-CH-UA-Platform-Version header is a Client Hints header that offers a mechanism to improve privacy and reduction of 'User-Agent' strings by specifying version information for the platform, in a standardized structured format, which the browser runs on. This allows for better content tailoring, by enabling the server to understand the capabilities of different platform versions and serve the most compatible web content or resources.

Syntax

Sec-CH-UA-Platform-Version: "<version>"

The <version> field indicates the version of the client's platform.

Directives

The Sec-CH-UA-Platform-Version header does not have any specific directives. The header’s field value is a quoted string representing the client’s platform version.

Examples

Example of Sec-CH-UA-Platform-Version header in a request:

Sec-CH-UA-Platform-Version: "10_15_4"

This suggests the platform version that the browser is running on is 10.15.4.

Browser Compatibility

Browser Compatibility
Chrome Supported
Firefox Not Supported
Safari Not Supported
Opera Supported
Edge Supported

How to modify Sec-CH-UA-Platform-Version header

ModHeader is a Chrome extension that allows you to modify HTTP request headers. To modify the Sec-CH-UA-Platform-Version header, you can follow these steps:

  1. Install and open ModHeader.
  2. In the 'Request Headers' section, click on 'Add' button.
  3. In the 'Name' field, enter Sec-CH-UA-Platform-Version.
  4. In the 'Value' field, enter your desired platform version.

This can be useful when testing how your server responds to different platform versions. For instance, you might want to check if the server sends back different versions of a web page or different pieces of Javascript code, based on the platform version the client is running on.