Permissions-Policyヘッダージェネレーターとは
Permissions-Policyヘッダージェネレーターは、サイト全体のブラウザ機能アクセスを制御するPermissions-Policy HTTPヘッダーを生成します。 出力は公開サイトに使う前に確認しやすい形で表示されます。
Quick answer
Use Permissions-Policy to disable browser features -- such as camera, microphone, geolocation, and autoplay -- that your site does not need. This improves privacy and prevents third-party scripts from accessing sensitive APIs.
Limitations
- Permissions-Policy requires deployment via an HTTP header. GitHub Pages and many static hosts do not support custom headers; use the allow attribute on iframes or configure the host to send the header.
- The older Feature-Policy header is deprecated. Browsers that support Permissions-Policy no longer process Feature-Policy.
- Some browser features such as gamepad and screen-wake-lock are not yet supported in all browser engines.
使い方
- 必要な値を入力します。
- 結果パネルの出力を確認します。
- ページに合う部分だけコピーします。
- 公開前にブラウザとホスティング環境で確認します。
主な用途
- 公開前の繰り返し作業を短くする。
- マークアップ、CSS、チェックリストを準備する。
- 静的サイトで見落としやすい小さなミスを減らす。