Permissions-Policy: attribution-reporting
Deprecated
To be removed
This feature is pending removal from browsers. Using it now may lead to broken functionality in future updates. Following the announcement that Chrome will maintain its current approach to third-party cookies, Chrome decided to withdraw certain Privacy Sandbox features including the attribution reporting API. >
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
HTTP の Permissions-Policy ヘッダーにおける ambient-light-sensor ディレクティブは、現在の文書が帰属レポート API を使うことをインターフェイスを通じて端末の周囲の環境における明るさの量に関する情報を収集することを許可するかどうかを制御します。
仕様上、この機能の使用がブロックされている場合、
- バックグラウンドの
attributionsrcリクエストは行われません。 XMLHttpRequest.setAttributionReporting()メソッドが呼び出されると、例外が発生します。attributionReportingオプションがfetch()呼び出しに含まれている場合、例外を発生させます。- 関連付けられた文書の HTTP レスポンスの登録ヘッダー (
Attribution-Reporting-Register-SourceおよびAttribution-Reporting-Register-Trigger)は無視されます。
構文
http
Permissions-Policy: attribution-reporting=<allowlist>;
<allowlist>-
その機能を使用する権限が与えられているオリジンのリストです。詳しくは
Permissions-Policy> 構文を参照してください。
既定のポリシー
attribution-reporting の既定の許可リストは * です。