Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Missing Permissions-Policy header: what it is and how to add it

OPS-174Low impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Permissions-Policy is an HTTP response header. It tells the browser which powerful features your page, and the iframes inside it, may use. Examples are the camera, microphone, geolocation, payment request, fullscreen and USB access. It replaced an older header called Feature-Policy.

When the header is missing, the browser falls back to its defaults. The top page can usually ask for these features, and embedded third-party frames can ask for some of them if the page allows it. Security scanners flag the missing header as a hardening gap. It is not a vulnerability by itself.

Why it costs you leads or sales

The direct cost is small. The risk is indirect: a third-party script, chat widget, ad tag or embedded video that is compromised or badly built could ask visitors for location, camera or microphone access on your domain. A surprise permission prompt on a landing page makes people leave and erodes trust. Security audits, enterprise buyers and agency checklists also often list this header, so a missing one can slow a deal or a procurement review.

How an open feature policy can hurt a visit
  1. Visitor landsPage loads with third-party scripts and embeds
  2. No Permissions-PolicyBrowser applies default feature rules
  3. Unwanted promptA widget asks for location or microphone
  4. Visitor leavesTrust drops, form or checkout abandoned

The break is the missing header. Later steps are the possible consequences, not things that always happen.

How to check if your site has it

Check the response headers
  1. Use your browser

    Open your page, press F12, go to the Network tab, reload, click the first document request and read Response Headers. Look for permissions-policy.

  2. Or use the command line

    Run curl -sI https://example.com | grep -i permissions-policy. No output means the header is missing.

  3. Or use a header scanner

    Free online security header checkers report Permissions-Policy along with CSP and other headers.

  4. Check key pages

    Test the home page, a landing page, the checkout and the thank-you page. Headers can differ by path or by CDN rule.

Check for the headerbash
curl -sI https://example.com/ | grep -i permissions-policy
# No output = header missing

How to fix it

Start with a policy that switches off features you do not use. An empty list () means no one can use the feature, including your own page. Only allow what you need. If you use a map, a payment button or video calls, allow that feature for self or for the specific origin.

A safe starting headertext
Permissions-Policy: camera=(), microphone=(), geolocation=(), payment=(self), usb=(), interest-cohort=()
Add the header on your platform
  1. Use a headers setting

    If your security or caching plugin has an HTTP headers section, add Permissions-Policy there. Otherwise add the header in your server config (see Custom code) or at your CDN.

  2. Or add it in PHP

    In a child theme or small plugin, hook send_headers and call header() with the policy. Do not edit the parent theme directly.

Nginx examplenginx
add_header Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=(self)" always;
Apache .htaccess examplehtaccess
<IfModule mod_headers.c>
  Header always set Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=(self)"
</IfModule>
Response headers before and after

Before

  • No Permissions-Policy header
  • Browser defaults apply to your page and embeds
  • Security scanners flag a gap

After

  • Header sent on every page
  • Unused features switched off
  • Needed features allowed only for named origins

How to confirm it's fixed

Confirmation checks
  • curl -sI on the home page shows a permissions-policy line
  • The header also appears on landing pages, checkout and thank-you pages
  • The browser console shows no Permissions policy violation messages
  • Contact form, chat widget, booking widget and checkout still work
  • A header scanner no longer reports the header as missing

How to prevent it happening again

Keep the header in version-controlled server or CDN config, not in a one-off manual change. A migration, a new CDN or a host change can silently drop it. Re-run a header check after each of those. When you add a new embed that needs a browser feature, update the policy in the same change. Review the policy when you add new third-party tools.

How FunnelGuard handles this

FunnelGuard does not check for a missing Permissions-Policy header yet. It is a possible future check. Today FunnelGuard runs your real customer journeys on a schedule, such as lead forms, checkouts, and booking and chat buttons, and checks each step, the tracking hits and whether test leads arrive. That would show you if a header change broke a form or an embed, but it does not read or report on this header.

To watch for the header, run the curl check above after each deploy, or add a security header scan to your release checklist. You can also schedule a header check with any monitoring tool you already use. After you add the header, a FunnelGuard journey on your form or checkout is a quick way to confirm nothing broke. The Free plan covers 1 site and 2 journeys with daily checks and no card.

Questions people ask

What is the Permissions-Policy header?

Permissions-Policy is an HTTP response header that tells the browser which features your page and its iframes may use, such as camera, microphone, geolocation and payment. It replaced the older Feature-Policy header. It limits what scripts and embeds can ask for on your pages.

Why does my security scan say Permissions-Policy is missing?

Your server, CDN or platform is not sending the header in its responses. Scanners check for it as a hardening measure. It is a low-risk finding, but it is easy to fix on servers where you control headers.

How do I add a Permissions-Policy header?

Add it at the server or CDN. In Nginx use add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;. In Apache use Header always set Permissions-Policy ... with mod_headers. Then reload and check with curl.

Can I add Permissions-Policy on Shopify, Wix or Squarespace?

Usually not. These platforms control response headers and do not offer a setting for custom ones. A CDN or proxy in front of the site may be able to add it, but check the platform's rules and your DNS setup first.

Will a Permissions-Policy header break my forms or tracking?

Not if you only switch off features you do not use. Forms and standard analytics tags do not need camera, microphone or location. Test any map, video call, booking or payment embed after adding it, as a blanket block can stop those.

Can I set Permissions-Policy with a meta tag or Google Tag Manager?

No. Permissions-Policy works as an HTTP response header. A meta tag does not apply it, and GTM runs inside the page after the headers have already been sent. Set it at the server, CDN or hosting layer.

Does FunnelGuard check for a missing Permissions-Policy header?

No, not yet. It is a possible future check. FunnelGuard does run your real funnel journeys, so it can show whether a form or checkout still works after you change headers.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.