CSP
Content Security Policy Builder
Create a practical CSP header from common source directives.
Processed in your browser
Your entered content is processed on this device. It is not uploaded by this tool. Some tools load code or public resources before processing.
Your entered content is processed on this device. It is not uploaded by this tool. Some tools load code or public resources before processing.
How to use Content Security Policy Builder
Prepare a Content Security Policy from explicit source directives. The optional live scan suggests origins visible in a page’s HTML and produces a report-only starting point.
- List the sources each resource type actually needs.
- Optionally scan a public page and review the suggested report-only draft.
- Test report-only behaviour, review violations and runtime requests, then enforce a reviewed policy.
What should I check before using the result?
Visible resource URLs cannot reveal every runtime request. Header presence alone does not prove that a policy is effective or that an application is secure.
Only details you choose to share.