Inspect, edit, and override CSP headers in real time. Debug violations, test policies, and ship secure websites — all from your browser.
default-src
script-src
style-src
A complete toolkit for inspecting, editing, and debugging Content Security Policies during development.
Instantly view the active Content Security Policy from HTTP headers or meta tags. See exactly what directives are in place on any page.
Add, edit, toggle, and remove directives using a clean visual interface. No more hand-editing raw header strings.
Replace server-sent CSP headers entirely using the declarativeNetRequest API. Full control to tighten or loosen any policy.
Monitor CSP violations as they happen. See the blocked resource, violated directive, and timestamps in real time.
Save and switch between named CSP configurations. Assign URL patterns so the right policy applies to the right environment.
Full internationalization with support for English, Chinese, Spanish, German, French, Japanese, Korean, and more.
A tour through the extension popup — editor, violation tracking, settings, and more.
Browse, toggle, and edit each directive of the active page's Content Security Policy.
Watch CSP violations stream in as the page runs, with directives and blocked URIs surfaced in real time.
Switch between meta-tag and header-override modes, choose a theme, and pick from 15 languages.
Context-aware help explains override modes and shows exactly where each CSP on the page came from.
Quick access to documentation, the csptool.net site, and the Aleph Void homepage.
CSP Tool gives you two powerful modes for applying policy changes, depending on what you need.
The default mode. CSP Tool injects or modifies a <meta> tag in the page DOM to apply your policy changes.
Intercepts and replaces the actual HTTP Content-Security-Policy response header before the browser processes it.
Open the extension popup to see the active CSP on the current page.
Add, modify, or toggle directives using the visual editor.
Click Apply to push the new policy to the page instantly.
Check the Errors tab for violations and iterate until clean.
Everything you need to get started and make the most of CSP Tool.
When you open CSP Tool on a page, it automatically detects any existing Content Security Policy — whether set via HTTP headers or a <meta> tag. The Editor tab shows the parsed directives. If the page has no CSP, you'll see a blank editor ready for you to build one.
Click Import from Page to pull the live policy into your editor and begin making changes.
Use the dropdown at the bottom of the editor to select from all 28 CSP directives defined in the specification, including:
default-src, script-src, style-src, img-src, font-src, connect-src, media-src, object-src, frame-src, child-src, worker-src, manifest-srcbase-uri, sandboxform-action, frame-ancestors, navigate-toreport-uri, report-toClick a directive's value area to edit it. Values are space-separated, just like in a raw CSP string. Common values include 'self', 'none', 'unsafe-inline', 'unsafe-eval', 'nonce-...', and domain patterns like https://cdn.example.com.
Each directive has a toggle switch to temporarily disable it without losing the values. Use the delete button to remove a directive entirely. The Reset button restores the original policy from the page.
The left sidebar (Config Ribbon) lets you create and switch between multiple named configurations. Each config stores its own set of directives and URL patterns.
Assign URL patterns to a configuration so it only applies to matching pages. Patterns use glob syntax:
https://example.com/*https://*.staging.example.com/**://localhost:3000/*
When a configuration has URL patterns, it will only activate on pages whose URL matches at least one pattern. Configurations without patterns apply to all pages.
The Errors tab captures CSP violations in real time via the browser's securitypolicyviolation event. For each violation you'll see:
The tab badge shows a running count of violations. Use Clear All to reset and test again with a modified policy.
csptool-receiver is a self-hosted Express 5 application that receives browser-generated CSP reports, persists them in SQLite, and displays them in a live Vue 3 dashboard. It works alongside CSP Tool or independently with a site's reporting headers.

The dashboard provides a date filter, a copyable reporting endpoint, report details with raw JSON and source locations, and 13 interface languages. Socket.io updates connected dashboards as reports arrive; SQLite retains reports across server restarts.
Clone the receiver repository, enter its directory, and use Node 24 or 26 (24 is the default):
nvm use
npm ci
npm start
Open http://localhost:3000. Configure PORT, HOST, and DB_PATH as needed; defaults are 3000, 0.0.0.0, and ./violations.db. After switching Node versions, rerun npm ci to install the matching native SQLite binary.
report-uri http://localhost:3000/violations to the policy. Disable any existing report-to directive for this local legacy setup; supporting browsers may ignore report-uri when report-to is present.Use a reachable HTTPS endpoint for remote or HTTPS deployments. localhost refers to the browser user's machine. The extension's Errors tab displays DOM violation events, including those from matching child frames; these events do not establish successful HTTP report delivery. The receiver shows reports actually received over HTTP.
report-to names a reporting group, not an endpoint URL. Configure the tested site's response headers together:
Content-Security-Policy: default-src 'self'; report-to csp-endpoint
Reporting-Endpoints: csp-endpoint="https://reports.example.com/violations"
A group name alone does not send reports. Reporting API delivery may be batched by the browser. For legacy reporting, use report-uri https://reports.example.com/violations in the CSP instead.
sudo ./install.sh reports.example.com configures a dedicated Node runtime, a systemd service, nginx HTTPS, and certificate renewal. It can reuse a matching Let's Encrypt certificate or issue one through Cloudflare DNS-01 with the required credentials. Follow the server installation guide for DNS, certificates, upgrades, and backups. Installed data is stored separately from releases at /var/lib/csptool-receiver/violations.db.POST /violations accepts legacy application/csp-report and modern application/reports+json payloads and returns 204 on success. GET /violations?since=YYYY-MM-DD returns reports newest first, defaulting to today. GET /healthz provides a health check.npm run test:receiver from csptool. This checks a real legacy browser report, persistence, Socket.io delivery, and the modern payload contract using a temporary database; it does not verify browser scheduling of modern Reporting API delivery.Enable Override Mode in settings to replace the server's HTTP CSP header entirely. This uses the declarativeNetRequest API and requires a page reload after changes.
Enable this option to inject a CSP on pages that have no existing policy. Useful for testing what restrictions your policy would enforce before deploying to production.
Choose between Light, Dark, or System theme. The extension respects your OS preference by default.
Select from 15 supported languages: English, Chinese, Spanish, German, French, Italian, Portuguese, Japanese, Korean, Russian, Polish, Arabic, Filipino, Hebrew, and Hindi.
Content Security Policy is an HTTP response header that controls which resources the browser is allowed to load for a given page. Here are common directives:
| Directive | Controls |
|---|---|
default-src | Fallback for all fetch directives |
script-src | JavaScript sources |
style-src | CSS sources |
img-src | Image sources |
connect-src | XHR, Fetch, WebSocket endpoints |
font-src | Font file sources |
frame-src | Iframe sources |
frame-ancestors | Which pages can embed this page |
form-action | Form submission targets |
base-uri | Allowed <base> URLs |
upgrade-insecure-requests | Upgrade HTTP to HTTPS |
Install for free on your preferred browser.
Content Security Policy (CSP) is a security standard implemented as an HTTP response header. It tells the browser which sources of content (scripts, styles, images, etc.) are allowed to load on a page. CSP helps prevent cross-site scripting (XSS), data injection attacks, and other code injection vulnerabilities.
In the default meta tag mode, no — browsers enforce the most restrictive policy between the HTTP header and meta tag. To tighten an existing HTTP header policy, enable Override Mode in settings, which replaces the header entirely before the browser processes it.
No. CSP Tool only modifies what the browser sees locally. Your server's actual response headers are never changed. All modifications happen client-side in your browser session and are not visible to other users or environments.
Override Mode uses the declarativeNetRequest API to intercept HTTP response headers. These rules take effect on new requests, so the page must be reloaded for the modified headers to be applied.
Yes. Create multiple configurations in the Config Ribbon and assign URL patterns to each one. CSP Tool will automatically activate the right configuration based on the current page's URL.
Yes. CSP Tool is open source and built with Vue 3, TypeScript, and Tailwind CSS. Contributions and bug reports are welcome on GitHub.
CSP Tool works on most websites. However, browser extensions cannot run on certain restricted pages like the browser's internal pages (e.g., chrome:// or about: URLs) or extension store pages.