Attribution-Reporting-Eligible 標頭
HTTP Attribution-Reporting-Eligible 請求標頭表示相應的響應有資格註冊歸因源或歸因觸發器。
此標頭從不手動設定,而是由瀏覽器根據各種 HTML 元素或 JavaScript 請求設定傳送。根據 Attribution-Reporting-Eligible 值中指定的允許註冊,伺服器應使用 Attribution-Reporting-Register-Source 或 Attribution-Reporting-Register-Trigger 標頭進行響應,以分別完成歸因源或觸發器的註冊。
有關更多詳細資訊,請參閱 歸因報告 API。
語法
http
Attribution-Reporting-Eligible: <allowed-registrations>
指令
<allowed-registrations>-
一個結構化標頭字典,表示相應響應中允許的註冊。可能的鍵包括:
event-source-
可以註冊一個基於事件的歸因源。
-
可以註冊一個基於導航的歸因源。
trigger-
可以註冊一個歸因觸發器。
重定向鏈中的每個響應最多可以註冊一個源或一個觸發器。
示例
http
Attribution-Reporting-Eligible: trigger
規範
| 規範 |
|---|
| 歸因報告 # attribution-reporting-eligible |
瀏覽器相容性
載入中…