Anti-spam team, Confirmed users
99
edits
(→Implementation Notes: More info on <meta> tags) |
(→Examples: Update examples (thanks ckerschb)) |
||
Line 172: | Line 172: | ||
<pre># Disable unsafe inline/eval, only allow loading of resources (images, fonts, scripts, etc.) over https (recommended) | <pre># Disable unsafe inline/eval, only allow loading of resources (images, fonts, scripts, etc.) over https (recommended) | ||
Content-Security-Policy: default-src https:</pre> | Content-Security-Policy: default-src https:</pre> | ||
<pre><-- Do the same thing, but with a <meta> tag --> | |||
<meta http-equiv="Content-Security-Policy" content="default-src https:"></pre> | |||
<pre># Disable the use of unsafe inline/eval, allow everything else | <pre># Disable the use of unsafe inline/eval, allow everything else | ||
Content-Security-Policy: | Content-Security-Policy: *</pre> | ||
<pre># Disable unsafe inline/eval, only load resources from same origin, except also allow images on imgur | <pre># Disable unsafe inline/eval, only load resources from same origin, except also allow images on imgur |