<4> 4th Web CSP specification

CSP Inspector.

Trace a request through your Content Security Policy. Compare a proposed header with production before you ship it.

A Current policy

Paste a header or a semicolon-separated policy.

B Proposed policy Optional

Separate full headers with newlines, or bare policies with commas.

Test a resource request

How to read the trace

Find the source list

Each request type tries its most specific directive first. For example, a worker looks for worker-src, then child-src, script-src, and default-src.

Compare enforced and report-only

Each enforced header must allow the request. A Content-Security-Policy-Report-Only header can report a violation without blocking it.

Confirm in the browser

This models URL source matching for the types above. Nonces, integrity, script ancestry, mixed content, and other browser or document checks may affect actual behavior. Pasted policies and URLs stay in this tab.