What is Permissions-Policy Header Generator?
The Permissions-Policy header (formerly Feature-Policy) tells the browser which APIs and features the page and its embedded iframes can use. It controls access to camera, microphone, geolocation, fullscreen, payment, and other browser features. This is useful for static sites that want to set a clear security baseline without complex server configuration.
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.
How to use this tool
- Select a preset that matches your site type, or choose Custom to set each permission individually.
- For each browser feature, choose whether to allow it for all origins, same origin only, or deny it entirely.
- Copy the generated Permissions-Policy header into your server or hosting configuration.
- Use the iframe allow examples when you need per-iframe overrides.
What you can use it for
- Set a default deny-all policy and only enable features your site actually uses.
- Allow fullscreen and autoplay for a media-rich static site.
- Prepare a security header for Netlify, Cloudflare Pages, Vercel, or GitHub Pages.