Input
How to fill in sources
Each directive takes a list of sources separated by spaces. No commas, no quotes around URLs.
- KeywordsBare or quoted — the tool wraps them in single quotes for you.
self, none, unsafe-inline, unsafe-eval - Same originScheme + host + port match the page.
'self' - URLsInclude the scheme. Port matters.
https://cdn.example.com - WildcardsSubdomain wildcard. * alone allows any origin (avoid).
*.example.com https://*.cdn.example.com - SchemesNote the trailing colon.
data: blob: mediastream: - NoncesAuto-quoted. Pair with a matching nonce attribute in your HTML.
nonce-AbCdEf - HashesAuto-quoted. Base64 of the script/style body.
sha256-AbCd... sha384-... sha512-... - Block allMust be the only value in the directive.
'none'
default-srcFallback for fetch directives. Example:
'self'script-srcJavaScript sources. Example:
'self' https://cdn.example.com 'nonce-abc123'style-srcStylesheets and <style>. Example:
'self' https://fonts.googleapis.comimg-srcImages. Example:
'self' data: https://images.example.comfont-src@font-face sources. Example:
'self' https://fonts.gstatic.comconnect-srcfetch / XHR / WebSocket / EventSource. Example:
'self' https://api.example.com wss://api.example.comframe-srcSources for <iframe> / <frame>. Example:
'self' https://www.youtube.comframe-ancestorsWho can frame this page (replaces X-Frame-Options). Example:
'self'
Output
Configure directives on the left.