permissions-policy
What it does
This skill checks the security headers a site sends and adds a Permissions-Policy header to restrict powerful browser features. It is for developers who want an extra layer of protection for their web app.
When to use it
- ✓When you ask the agent to review the security headers of a website.
- ✓When your site does not use features like the camera or geolocation and you want them blocked by default.
- ✓When you are hardening a web app and want to reduce what an attacker could access after a successful injection.
Skill link
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/permissions-policy/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you check my site's security headers and add a Permissions-Policy that turns off features I do not use?”
5 new skills a week. 1 minute to read.
How it works
The agent checks whether a Permissions-Policy header is already sent and which powerful features are allowed. It then adds a header that denies unused features, such as camera, microphone, and geolocation, and expands the list only for what the app needs.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Set a Permissions-Policy header
A site compromised by XSS that has unrestricted camera and microphone access can silently record the user. Permissions-Policy limits which browser APIs are available, reducing attacker capabilities even after a successful injection.
Quick Reference
- Use
Permissions-Policyto disable browser features your site does not use (camera, microphone, geolocation, payment) - Syntax:
Permissions-Policy: camera=(), microphone=(), geolocation=()— empty()means denied to all - Previously called
Feature-Policy— the old syntax is deprecated and only supported in older browsers - Restricting unused features limits the blast radius if your site is compromised by XSS
- Third-party iframes inherit page restrictions unless you explicitly grant them permissions
Check
Check whether the server sends a Permissions-Policy header and review which browser features are allowed or denied. Identify any powerful features (camera, microphone, geolocation, payment, USB) that are enabled but not required by the application.
Fix
Add a Permissions-Policy header that disables all browser features your site does not use. Start with camera=(), microphone=(), geolocation=() and expand the list based on what the application actually needs.
Explain
Explain what the Permissions-Policy header does, how it restricts browser APIs like camera and geolocation, and why disabling unused features improves security.
Code Review
Review server config, headers, forms, and integration points related to Set a Permissions-Policy header. Flag exact responses, cookies, or browser behaviors that violate the rule, and verify them against the effective production-like response.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/security/permissions-policy
FAQ
What does an empty pair of brackets mean?
The skill says an empty pair such as camera=() denies that feature to all sites.
Is Feature-Policy still used?
The skill says it is the old, deprecated name and is only supported in older browsers.
Do third-party iframes get these permissions?
They inherit the page's restrictions unless the site explicitly grants them permissions.
Details
Original description by the author
Use when reviewing HTTP response headers for defense-in-depth security hardening on any web application.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2977
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.