Fix · Express / Node
Fix “Permissions-Policy” on Express / Node
Add: Permissions-Policy: geolocation=(), microphone=(), camera=()
res.setHeader("Permissions-Policy", "geolocation=(), microphone=(), camera=()");
Verify the fix
Re-run the Permissions-Policy check after deploying. Test config changes in staging first and keep a rollback: a wrong header can break a site faster than a missing one.
Other stacks: nginx · Apache · Caddy · Cloudflare