permissions
Display the Permissions-Policy (and legacy Feature-Policy) headers captured during a crawl session.
Usage
csp-analyser permissions [session-id]When session-id is omitted, the most recent completed session for the current project is used automatically. Override the project with --project or the CSP_ANALYSER_PROJECT environment variable.
Options
| Option | Default | Description |
|---|---|---|
--project <name> | auto-detected | Override auto-detected project name for session lookup. |
What it shows
During crawling, the CSP Analyser captures Permissions-Policy and Feature-Policy headers from every HTTP response. The permissions command groups these by directive and shows:
- The directive name (e.g.,
camera,geolocation,microphone) - The allowlist for each occurrence (e.g.,
self, specific origins, or(none)if the feature is disabled) - The header type (
permissions-policyorfeature-policy) - The source URL where the header was observed
Example output
Permissions-Policy for session abc123
camera
(none) [permissions-policy] from https://example.com/
geolocation
self [permissions-policy] from https://example.com/
self https://maps.example.com [permissions-policy] from https://example.com/map
microphone
(none) [permissions-policy] from https://example.com/When to use
- Audit third-party permissions: see which browser features (camera, geolocation, payment, etc.) the site enables and for which origins
- Complement your CSP: Permissions-Policy controls browser features while CSP controls resource loading; together they form a complete security header strategy
- Detect legacy headers: identify sites still using the deprecated
Feature-Policyheader so you can recommend migrating toPermissions-Policy
Examples
View permissions after a crawl
csp-analyser crawl https://example.com
# Session ID: abc123
csp-analyser permissions abc123Check if no permissions were captured
If the target site does not send Permissions-Policy or Feature-Policy headers, the command prints:
No Permissions-Policy headers captured for this session.When to use this command
Use permissions to review the Permissions-Policy and Feature-Policy headers that a site sends alongside its Content Security Policy. While CSP controls which resources can load, Permissions-Policy controls which browser features (camera, microphone, geolocation, etc.) the page can access. Reviewing both together gives a more complete picture of a site's security posture.