Permissions-Policy: browsing-topics
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 topics API. >
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
非標準: この機能は標準化されていません。非標準の機能はブラウザーの対応が限られ、将来的に変更または削除される可能性があるため、本番環境での使用は推奨されません。ただし、標準の選択肢が存在しない特定のケースでは、有効な代替手段となる場合があります。
HTTP の Permissions-Policy ヘッダーの browsing-topics ディレクティブは、トピック API へのアクセスを制御します。
ポリシーでトピック API の使用が明確に禁止されている場合、 Document.browsingTopics() メソッドを呼び出したり、 Sec-Browsing-Topics ヘッダーを含むリクエストを送信したりすると、 NotAllowedError の DOMException が発生します。
構文
Permissions-Policy: browsing-topics=<allowlist>;
<allowlist>-
この機能を許可するオリジンのリストです。
Permissions-Policy> 構文を参照してください。
既定のポリシー
browsing-topics の既定の許可リストは * です。
仕様書
この機能は、トピック API の非公式草案で仕様化されていますが、公式の標準には属していません。