Attribution-Reporting-Eligible 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.

Tiêu đề HTTP Attribution-Reporting-Eligible request header chỉ ra rằng phản hồi tương ứng đủ điều kiện để đăng ký nguồn phân bổ hoặc trigger.

Tiêu đề này không bao giờ được đặt thủ công và thay vào đó được trình duyệt gửi khi phản hồi các cài đặt phần tử HTML hoặc yêu cầu JavaScript khác nhau. Tùy thuộc vào các đăng ký được phép chỉ định trong giá trị Attribution-Reporting-Eligible, máy chủ dự kiến sẽ phản hồi với tiêu đề Attribution-Reporting-Register-Source hoặc Attribution-Reporting-Register-Trigger để hoàn tất đăng ký nguồn phân bổ hoặc trigger, tương ứng.

Xem Attribution Reporting API để biết thêm chi tiết.

Loại tiêu đề Request header
Forbidden request header Không

Cú pháp

http
Attribution-Reporting-Eligible: <allowed-registrations>

Chỉ thị

<allowed-registrations>

Từ điển structured-header đại diện cho các đăng ký được phép trong phản hồi tương ứng. Các khóa có thể là:

event-source

Có thể đăng ký nguồn phân bổ dựa trên sự kiện.

Có thể đăng ký nguồn phân bổ dựa trên điều hướng.

trigger

Có thể đăng ký trigger phân bổ.

Mỗi phản hồi trong chuỗi chuyển hướng có thể đăng ký nhiều nhất một nguồn hoặc một trigger.

Ví dụ

http
Attribution-Reporting-Eligible: trigger

Thông số kỹ thuật

Specification
Attribution Reporting
# attribution-reporting-eligible

Khả năng tương thích trình duyệt

Xem thêm