Content Security Policy
Control what your pages are allowed to load
Build a Content Security Policy from a scan of your own pages, validate it, and deploy it to your project at the edge. ScriptAttest is now part of Quant, under Security > CSP on a project.
ScriptAttest
ScriptAttest is now part of Quant
ScriptAttest was a separate service for Content Security Policy and script integrity, and it is being shut down. The same functions are now in the Quant dashboard, under Security > CSP on an Edge (CDN) project, on both QuantCDN and QuantGov.
ScriptAttest data does not move to Quant automatically. If your site already serves a policy, the setup wizard shows it and can import it as version 1.
Contact us about CSP for your organisation
What you get in the Quant dashboard
A setup wizard that scans your pages and builds a policy from the sources you approve
Deployment to the project at the edge, in report-only or enforcing mode
- Violation reports from the browsers of your visitors
Script integrity checks that compare your scripts with a baseline
- Scheduled scans, with alerts by Slack or email
CSP is available on selected plans and is not available in trial mode.
From a scan to a deployed policy in five steps
The setup wizard on the CSP page takes you from the first scan to a policy on your project.
Scan
Choose one of the project's domains and add the pages to scan. A headless browser loads each page and records every script, style, font, image, frame and connection.
Review sources
Approve or deny each domain and each inline hash that the scan found. The policy allows only the sources that you approve.
Generate
Quant builds a numbered policy version from the approved sources. Warnings show weaker settings, such as 'unsafe-inline' or scripts from public CDNs.
Validate
The scanner loads each page with the draft policy and lists what the policy would block. Each finding has a one-click fix, and you validate again until none remain.
Deploy
Choose report-only mode, where browsers report violations and block nothing, or enforcing mode. Quant writes the headers to the project and purges the project cache, which can take up to about a minute.
Violations
Violation reports from real browsers
When a page loads something that the policy does not allow, the browser sends a report to Quant. The report service runs behind a CDN and a WAF with rate limiting. In report-only mode you can read the reports before the policy blocks anything.
- Filter by active, resolved or dismissed
- Sort by most recent or most frequent
- Approve a source from its report
Ignore rules for reports that browser extensions cause
An ignore rule matches a report type and a host, and it drops new matching reports within 60 seconds. Use one when a browser extension, such as a translate tool, injects scripts or images into your pages.
Script integrity
See when a script on your site changes
A policy that allows a domain does not show when a script from that domain changes. The first script integrity check records a baseline, and each later check reports the scripts that were added, removed or changed against the baseline, with a severity.
Script inventory with the hash and execution order of each script
Network tracking of the requests that scripts send to other domains
- Added, removed and changed scripts with a severity
Keep the policy current
After setup, the CSP page has the tools to manage the policy as your site changes.
Policy versions
View the current policy by directive or as text. Quant numbers each policy version, and you can view or restore an earlier one.
- Switch between report-only and enforcing
- Add a source by domain, keyword or hash
- Import a policy
Schedules
Run a CSP validation or a script integrity scan daily, weekly or monthly at 02:00 in your timezone, or on a custom cron expression.
- CSP validation scans
- Script integrity scans
- Disabled after 5 consecutive failures
Drift check
Quant compares the headers that your site serves with the deployed policy and flags a difference, such as project headers that someone changed by hand.
- Served headers against the deployed policy
- Run a check from the Overview tab
Alerts
Violation, drift and scan alerts go to your organisation's alert channels for the Security category. Set a Security channel first, because without one Quant sends no CSP alerts.
- Slack webhook
- Email list
- Channels set per organisation
Overview and history
The Overview tab shows active violations, pending sources, the policy version and its mode. The History tab lists past scans and their results.
- Recent activity
- Quick actions
- Past scan results
Headers managed for you
After you deploy a policy, the CSP page manages the Content-Security-Policy, Content-Security-Policy-Report-Only and Reporting-Endpoints headers of the project.
- The deploy dialog shows the exact headers
- The custom headers API warns on a managed header
Add CSP to your Quant projects
CSP is available on selected plans and is not available in trial mode. Contact us to add it to your organisation.