Skip to content
Skillpedia
Security75k · #2977

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.md

Copy 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

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/permissions-policy/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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-Policy to 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.

repo: thedaviddias/Front-End-Checklist

Popularity

GitHub stars
75k
Ranking position
#2977
License
MIT
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills