Permissions-Policy builder
Build a Permissions-Policy header from allowed origins per feature.
Loading the tool…
What it does, how to use it, and questions
What it does
Permissions-Policy (formerly Feature-Policy) controls browser features such as camera and geolocation per origin.
Build a header by choosing allowed origins per feature. () means none; self means the document origin.
How to use it
- Pick features and allowlists.
- Copy the header.
- Deploy it on responses that serve your documents.
Things to watch for
- Misspelled feature names are ignored by browsers. Use the listed tokens.
- An empty allowlist blocks the feature.
Questions
- Is this Feature-Policy?
- Same family. Prefer the Permissions-Policy header name.
- Does this change my browser settings?
- No. It only builds header text.
- Can I allow a CDN origin?
- Yes. Add the origin URL for that feature.
- Is anything uploaded?
- No.