Sec-CH-UA-Full-Version

已弃用: 不再推荐使用该特性。虽然一些浏览器仍然支持它,但也许已从相关的 web 标准中移除,也许正准备移除或出于兼容性而保留。请尽量不要使用该特性,并更新现有的代码;参见本页面底部的兼容性表格以指导你作出决定。请注意,该特性随时可能无法正常工作。

安全上下文: 此项功能仅在一些支持的浏览器安全上下文(HTTPS)中可用。

备注: 这个标头将被 Sec-CH-UA-Full-Version-List 替代。

Sec-CH-UA-Full-Version 用户代理客户端提示请求标头提供用户代理完整的版本字符串。

标头类型 Request header客户端提示
Forbidden header name

语法

http
Sec-CH-UA-Full-Version: <version>

指令

<version>

包含完整版本号的字符串,如“96.0.4664.93”。

示例

服务器请求 Sec-CH-UA-Full-Version 标头的方法是在任何来自客户端的请求响应中添加 Accept-CH,使用所需标头的名称作为它的令牌(token):

http
HTTP/1.1 200 OK
Accept-CH: Sec-CH-UA-Full-Version

客户端可以选择提供提示(hint),并将 Sec-CH-UA-Full-Version 标头添加到后续的请求中。例如,客户端可能会添加标头,如下所示:

http
GET /GET /my/page HTTP/1.1
Host: example.site

Sec-CH-UA: " Not A;Brand";v="99", "Chromium";v="96", "Google Chrome";v="96"
Sec-CH-UA-Mobile: ?0
Sec-CH-UA-Full-Version: "96.0.4664.110"
Sec-CH-UA-Platform: "Windows"

规范

Specification
User-Agent Client Hints
# sec-ch-ua-full-version

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Sec-CH-UA-Full-Version request header
Deprecated

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Deprecated. Not for use in new websites.

参见