Content-Security-Policy builder
Build and audit HTTP Content-Security-Policy directives for XSS protection.
Runs in this browser. Nothing is uploaded.
Loading content-security-policy builder…
Provides interactive inputs and presets for default-src, script-src, style-src, img-src, connect-src, frame-ancestors, and object-src directives.
Lints parsed policies locally to flag missing fallbacks, wildcards, unsafe-inline, or unsafe-eval rules and outputs HTTP and meta header snippets.
Are my files uploaded to a server when using Content-Security-Policy builder?
No. Content-Security-Policy builder runs directly inside this browser tab. Everything you open stays in your device memory until you close or leave the page.
Does Content-Security-Policy builder work offline?
Yes. Once loaded, the app cache keeps assets available locally so you can run Content-Security-Policy builder without an active internet connection.