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.
Trace a request through your Content Security Policy. Compare a proposed header with production before you ship it.
| Directive | Current | Proposed |
|---|
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.
Each enforced header must allow the request. A Content-Security-Policy-Report-Only header can report a violation without blocking it.
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.