Started testing 'Reduced User Agent Strings' in Chrome

Google has announced that it will phase out user agent strings in Chrome, but from the new Chrome 95 beta, which will be released on September 23, 2021, on September 14, 2021. Announced to start testing 'Information-reduced user agent strings'.

User-Agent Reduction origin trial --Chrome Developers

The user agent string is a string that allows the server to identify the OS, vendor, browser information, etc. when the browser accesses the website. The server sometimes displays a website or provides a service according to the user's environment, and the user agent string is used to make this decision. However, in recent years, it has been pointed out that user agent strings may be used as fingerprints for personal identification. Google plans to abolish cookies in Chrome to improve privacy, but announced in January 2020 that it will gradually abolish user agent strings as well.

Google plans to phase out user agent strings in Chrome-GIGAZINE

by by Tati Tata

On September 14, 2021, Google published a new article on Chrome Developers entitled 'Reduced User Agent Origin Trials .' In the article, Google's senior software engineer Ali Chivkura and others first said that Google used the information contained in the user agent string as 'browser name and major version,' 'desktop or mobile,' and 'the platform on which it is running.' I explained that we are making a new effort to limit it to only.

They can also start an information-reduced user agent origin trial starting with Chrome 95 Beta, which will be released on September 23, and opt-in for websites to receive reduced user agents. I announced that I would like to do so. This allows websites to test reduced user agents before the stable release.

When the reduced user agent is applied, it affects the information available below.

-'User-Agent' in the HTTP request header
-Javascript getter 'navigator.userAgent'
-Javascript getter 'navigator.platform'
-Javascript getter 'navigator.appVersion'

Here's how to participate in the Origin Trial.

◆ 1: Access the origin trial registration page , register and get a token for the website.
◆ 2: Update the HTTP response header.
1. 1. Add 'Origin-Trial: Origin Trial Token' including 'Origin Trial Token' obtained at the time of registration to the HTTP response header.
2. Add 'Accept-CH: Sec-CH-UA-Reduced' to the HTTP response header.
3. 3. When 'Accept-CH' is set, the reduced user agent string will be sent only in subsequent requests to the origin. To resend the reduced user agent string on the first navigation request, add 'Critical-CH: Sec-CH-UA-Reduced' to the HTTP response header in addition to the 'Accept-CH' and 'Origin-Trial' headers. Add to.
Four. To allow third-party subresource requests to receive reduced user agent strings, add 'Permissions-Policy' along with the third-party domain.
◆ 3: Load the website on Chrome M95 or later and receive the reduced user agent string.
◆ 4: For problems and feedback, go to GitHub .
◆ 5: A simple demonstration of the origin trial and the source code can be confirmed from the following.

User-Agent Reduction Origin Trial Demo Site

If you want to get more information than is shared by the reduced user agent, you need to move to the User-Agent Client Hints API.

in Software, Posted by logq_fa