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.

1

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.

2

Review sources

Approve or deny each domain and each inline hash that the scan found. The policy allows only the sources that you approve.

3

Generate

Quant builds a numbered policy version from the approved sources. Warnings show weaker settings, such as 'unsafe-inline' or scripts from public CDNs.

4

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.

5

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.

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.

Setup wizard
Report-only and enforcing modes
Violation reports
Script integrity checks