Table of Content
- Browser Compatibility
- How to modify Sec-CH-UA-Model header The Sec-CH-UA-Model header is a Client Hint request header used by websites to request the model of the client user’s device. A website may use this information to understand and cater better to the variety of devices accessing its pages.
Sec-CH-UA-Model: "device model"
The only directive for Sec-CH-UA-Model header is "device model". It represents the model of the device, given as a quoted string.
For example, if a user with an iPhone 12 accesses a site, the Sec-CH-UA-Model header might be sent as:
Sec-CH-UA-Model: "iPhone 12"
How to modify Sec-CH-UA-Model header
ModHeader is a browser extension that can be used to modify HTTP request headers. First install the ModHeader from the Chrome Web Store. After installing, click on the ModHeader icon in your browser to open the extension.
In the "Request Headers" section, click on the 'Add' button. In the 'Name' field, enter "Sec-CH-UA-Model". In the 'Value' field, enter the device model within quotation marks (for example, "iPhone 12"). Click on the green 'Add' button to add the header to your requests.
This can be very useful for testing your website’s response to different device models without needing access to the physical devices.