Add a Permissions-Policy on Vercel
Why it matters
Without one, any script on your pages, including injected or third-party code, can ask visitors for the camera, microphone, location and similar features. Turning off what you do not use limits what such code can request.
Staged change. Do this in stages and check each one before the next, so a mistake does not break your site or your mail.
The fix
- Add the header (adjusted to the features you use) to vercel.json and redeploy.
- Test the pages that use those features.
vercel.json
{ "headers": [ { "source": "/(.*)", "headers": [ { "key": "Permissions-Policy", "value": "camera=(), microphone=(), geolocation=(), payment=(), usb=()" } ] } ] }
Related
Scan your domain to see whether this applies to you.