Guides · Security headers

Permissions-Policy header

One of the checks in every audibot report. This page says exactly what audibot reads, what passes, and how to fix it.

What audibot checks

Whether the home page sends a Permissions-Policy response header, with any value.

Why it matters

Permissions-Policy switches browser features — camera, microphone, geolocation, payment and others — off for the page and every frame in it. If a third-party script or an injected one asks for them, the browser refuses before the visitor is prompted.

How do I add a Permissions-Policy header?

List the features the site does not use with an empty allowlist (). A feature the site does use can be limited to itself with (self).

nginx

add_header Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=()" always;

Apache (mod_headers)

Header always set Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=()"

Caddy

header Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=()"

Related tools

Other checks in Security headers

Security headers in the methodology ·All guides

Check your site

audibot runs this check and every other one in a single audit, and publishes the report with a recommendation for each finding.