random-user-agent icon indicating copy to clipboard operation
random-user-agent copied to clipboard

support for chrome new Sec-CH-UA

Open signfind opened this issue 3 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Describe the problem to be solved

from here :https://www.chromium.org/updates/ua-ch/ test site: https://user-agent-client-hints.glitch.me/

new ua header in request header (only work well on https site,not http site):

sec-ch-ua: "Chromium";v="104", " Not A;Brand";v="99", "Google Chrome";v="104"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1

Suggest a solution

disable the Sec-CH-UA or instead it with extension value .

Additional context

request for https://www.cccxxx.com

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Cache-Control: no-cache
Connection: keep-alive
Content-Length: 100
Content-Type: application/x-www-form-urlencoded
Cookie: data1=-1; moredns=-5; newcomer=0; ip2long=1
Host: www.cccxxx.com
Origin: https://www.cccxxx.com
Pragma: no-cache
Referer: https://www.cccxxx.com/
sec-ch-ua: "Chromium";v="104", " Not A;Brand";v="99", "Google Chrome";v="104"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.4980.176 Safari/537.36

signfind avatar Aug 06 '22 05:08 signfind