SecurityResponse Header

Permissions-Policy

Allows site owners to selectively restrict browser hardware features, sensors, APIs, and privacy-invasive tracking mechanisms.

Recommended Production Value
Highly Recommended
camera=(), microphone=(), geolocation=(), browsing-topics=()

Production Server Implementation

NGINX Configuration Snippet
add_header Permissions-Policy "camera=(), microphone=(), geolocation=(), browsing-topics=()" always;

Directives & Syntax Breakdown

camera=()

Completely disables webcam access for this origin and any embedded iframes.

microphone=()

Disables microphone audio recording for the page and third-party widgets.

geolocation=()

Blocks GPS location coordinate queries from the browser API.

browsing-topics=()

Opts out of Google Chrome Privacy Sandbox ad tracking and behavioral profiling.

Common Security Hazards & Pitfalls

  • β€’Permissions-Policy replaces the deprecated Feature-Policy header. Ensure you use the newer key-value list syntax.
Frequently Asked Questions

Permissions-Policy - Questions & Answers

Common implementation questions, browser enforcement rules, and debugging.

Yes! Use "camera=(self), microphone=(self)" to allow your primary application while locking out third-party embedded iframes.