Permissions-Policy Generator
Control browser features and APIs with a Permissions-Policy header.
Header Output
What is Permissions-Policy?
Permissions-Policy (formerly known as Feature-Policy) provides a mechanism to explicitly declare which powerful features and APIs can be used in a document and any embedded iframes.
By restricting access to features like the camera, microphone, or geolocation, you can improve user privacy, enforce best practices, and lock down your application's security posture.
Syntax Changes
The syntax for this header has evolved from the old Feature-Policy syntax. The current standard uses structured headers:
- Features are separated by commas (
,). - The allowlist is enclosed in parentheses (e.g.,
camera=(self)). - To completely disable a feature, use empty parentheses (e.g.,
camera=()). - Specific origins must be enclosed in double quotes (e.g.,
camera=("https://example.com")).
Related Guides
Deepen your understanding with our expert articles.
