DELAPARRA
Index
Color
NL
Category: HTTP headers

Permissions-Policy

Explained by Updated

What is Permissions-Policy?

Permissions-Policy: Controls which browser APIs (camera, microphone, geolocation, etc.) your page can use, and on which origins. Permissions-Policy is a response header that controls which browser features a page, and any iframes inside it, may use. Camera, microphone, geolocation, payment and fullscreen are examples. Permissions-Policy: camera=(), microphone=(), geolocation=(self) blocks camera and microphone completely and allows location only for your own origin. A compromised script or an embedded third-party widget then cannot ask visitors for those permissions.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Permissions-Policy

What should you keep in mind with Permissions-Policy?

For most business websites, the safe default is to disable every powerful feature you do not use. It costs nothing and reduces the damage an injected script could do. If you embed a map or a video player that needs a feature, allow it for that specific origin only. It works best together with other security headers like Content-Security-Policy.

What does an example of Permissions-Policy look like?

Permissions-Policy: camera=(), microphone=(), geolocation=(self)

At a glance

CategoryHTTP headers
Explained by
Updated

More HTTP headers terms

All terms starting with P

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.