Sec-CH-UA-Full-Version header

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

Note: Tiêu đề này đang được thay thế bởi Sec-CH-UA-Full-Version-List.

Tiêu đề HTTP Sec-CH-UA-Full-Version request header là một gợi ý máy khách tác nhân người dùng cung cấp chuỗi phiên bản đầy đủ của tác nhân người dùng.

Loại tiêu đề Request header, Client hint
Forbidden request header Có (tiền tố Sec-)

Cú pháp

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

Chỉ thị

<version>

Chuỗi chứa số phiên bản đầy đủ, ví dụ: "96.0.4664.93".

Ví dụ

Sử dụng Sec-CH-UA-Full-Version

Máy chủ yêu cầu tiêu đề Sec-CH-UA-Full-Version bằng cách bao gồm Accept-CH trong phản hồi cho bất kỳ yêu cầu nào từ máy khách, sử dụng tên của tiêu đề mong muốn làm token:

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

Máy khách có thể chọn cung cấp gợi ý, và thêm tiêu đề Sec-CH-UA-Full-Version vào các yêu cầu tiếp theo. Ví dụ: máy khách có thể thêm tiêu đề như sau:

http
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"

Đặc tả

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

Tương thích trình duyệt

Xem thêm