CSP builder
Build and read a Content Security Policy.
Build and read a Content Security Policy.
// Runs in your browser. Nothing you type here is sent anywhere.
Type a policy, or paste a whole header or <meta> tag.
Everything from the site itself, nothing from elsewhere.
Scripts.
Nothing to remark on this policy.
The fallback for every kind of content that has no directive of its own.
'self' this site itself: same scheme, host and portImages and icons.
'self' this site itself: same scheme, host and portdata: anything over data:Style sheets and inline styles.
'self' this site itself: same scheme, host and port'unsafe-inline' code written in the page itself: inline blocks and attributesPlugins: <object> and <embed>.
'none' nothing at allWhat a <base> tag may point to.
'self' this site itself: same scheme, host and portWhere forms may be sent.
'self' this site itself: same scheme, host and portWhich sites may show this page in a frame.
'none' nothing at allEvery http: address in the page is fetched over https: instead.
Content-Security-Policy: default-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; object-src 'none'; base-uri 'self'; form-action 'self'; upgrade-insecure-requests">
Left out, because a browser ignores it in a tag: frame-ancestors.