Permissions-Policy header
Permissions-Policy (formerly Feature-Policy) controls which browser features can be used on your page and in embedded content.
72% of the 101 most-visited sites we scan fail this check. See the full data.
Results in 1–3 minutes · Free · No signup required
Want the result for your own site? Free Security Headers Checker — paste your domain, get the report.
Why It Matters
Malicious iframes or scripts might try to access sensitive features like camera, microphone, or geolocation. Permissions-Policy restricts these capabilities.
How We Check
We analyze your Permissions-Policy header for restrictions on sensitive features like camera, microphone, geolocation, and payment APIs.
Good vs Bad Values
| Value | Verdict | Why |
|---|---|---|
camera=(), microphone=(), geolocation=(), payment=() | Good | An empty list disables the feature for your page and every embedded frame. |
geolocation=(self) | Good | Only your own origin may use the feature; embedded third parties may not. |
camera=(self "https://meet.example.com") | Good | Explicit delegation to one trusted embed. Origins must be quoted inside the parentheses. |
browsing-topics=() | Good | Opts the site out of the Topics API interest-based advertising signal. |
camera=* | Bad | Every origin, including any iframe you embed, may request the camera. This is the opposite of the intent of the header. |
camera 'none'; microphone 'none' (Feature-Policy syntax) | Bad | The old syntax is not valid in Permissions-Policy and is ignored, so nothing is restricted. |
Only the legacy Feature-Policy header | Weak | Deprecated and being dropped from browsers. Send Permissions-Policy instead. |
No Permissions-Policy header | Bad | Embedded content falls back to browser defaults, which may let third-party frames ask for powerful features. |
How to Fix
Add a Permissions-Policy header disabling unused features: Permissions-Policy: camera=(), microphone=(), geolocation=(self).
Nginx:
add_header Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=(), usb=()" always;
Apache (requires mod_headers):
Header always set Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=(), usb=()"
Next.js — next.config.js:
async headers() {
return [{
source: "/(.*)",
headers: [{ key: "Permissions-Policy", value: "camera=(), microphone=(), geolocation=(), payment=()" }],
}];
}
Cloudflare: Rules → Transform Rules → Modify Response Header → set Permissions-Policy to the same value. Caddy: header Permissions-Policy "camera=(), microphone=(), geolocation=()".
Which features to list. Start by disabling the ones almost no marketing or content site needs: camera, microphone, geolocation, payment, usb, bluetooth, serial, accelerometer, gyroscope and magnetometer. Leave out fullscreen and autoplay if you embed video. Keep the list short and only add names your target browsers support, because unsupported names trigger a console warning.
Allowing an embed. If a page legitimately embeds a meeting or payment widget, name its origin in the policy and also grant it on the iframe:
<iframe src="https://meet.example.com/room" allow="camera; microphone"></iframe>
The header is the ceiling and the allow attribute is the delegation. Both must permit the origin before the browser shows the permission prompt.
Verify with curl -sI https://example.com | grep -i permissions-policy, then open DevTools → Application → Frames (in Chromium) to see which features are allowed for the page.
Common Mistakes
- Separating directives with semicolons. In Permissions-Policy they are separated by commas; the semicolon belongs to the old Feature-Policy format.
- Forgetting that the header sets a ceiling. An iframe also needs its own `allow="camera"` attribute, and the policy has to permit that origin as well.
- Copying a list of every feature from a template. Unknown or unsupported names are ignored but produce console warnings, so keep only the ones you mean.
- Locking down `fullscreen` or `autoplay` on pages with embedded video players, then wondering why they stopped working.
- Assuming the header protects the whole browser. It governs only the page that sends it and the frames inside it; other sites you do not control are unaffected.
Frequently Asked Questions
What is Permissions-Policy header?
Permissions-Policy (formerly Feature-Policy) controls which browser features can be used on your page and in embedded content.
Why does Permissions-Policy header matter for website security?
Malicious iframes or scripts might try to access sensitive features like camera, microphone, or geolocation. Permissions-Policy restricts these capabilities.
How do I fix Permissions-Policy header issues?
Add a Permissions-Policy header disabling unused features: Permissions-Policy: camera=(), microphone=(), geolocation=(self).
Related Security Checks
Related Tool
Security Headers Checker
Run all 10 related checks with our free security headers checker
Check Your Website Now
Run a free security scan to check for Permissions-Policy header issues and 61 other security checks.
Scan Your Website Free