How-To

User-Agent Client Hints: What to Check in a Browser Test

A browser's traditional User-Agent string isn't the only place a site can learn about its browser environment. User-Agent Client Hints provide another documented interface, with availability and detail controlled by the browser.

Know which request you're inspecting

Chrome's Client Hints guide describes low-entropy hints and additional hints a server can request with Accept-CH. Depending on browser behavior and policy, requested information may arrive on a later request. Don't assume every browser sends every hint or that the first request contains everything your application expects.

Test with the actual browser and version you support. Inspect response headers and a subsequent request in developer tools or a controlled test server, with sensitive headers redacted. Record the request sequence so a missing hint isn't mistaken for a server parsing bug.

Make the application tolerate missing values

Use progressive enhancement or an explicit fallback when optional hints are unavailable. Chrome's documentation lists the request headers and notes that secure connections are required for this mechanism. If your application varies a response based on a hint, review caching behavior as well; serving one representation to another visitor can produce misleading results.

Client Hints aren't a reliable identity or authorization mechanism. A browser's reported brand or platform doesn't establish who controls the account or whether a request has permission. Avoid treating a changed header as proof of a real device or as a way to get around access rules.

Keep the test narrow

Start with a page your team controls and check the feature your application actually uses. Compare a normal request, the server's opt-in response and the following request. If the data isn't present, check the browser's support and privacy settings before adding assumptions to application code. Use a real device when the decision depends on physical-device behavior; a desktop emulation profile doesn't prove it.

Example: inspect a later request

Response from https://app.example.test:
Accept-CH: Sec-CH-UA-Platform-Version

Possible subsequent request:
Sec-CH-UA-Platform-Version: "14.0.0"

The host and value are illustrative. First confirm that the server returned Accept-CH, then inspect a later request from the same supported browser. A missing hint can be a normal browser or policy outcome; the application needs a fallback. If content varies by the hint, configure and test the relevant cache variation too.

If you need help planning an authorized automation workflow, ask for a scoped assessment. Share the documented limits and a redacted example, without credentials or private data.