CS-Notes/docs/_style/prism-master/examples/prism-csp.html
2018-12-19 14:09:39 +08:00

14 lines
407 B
HTML

<h2>A complete policy</h2>
<pre><code>default-src 'none';
script-src my.cdn.com;
img-src 'self' data:;
child-src 'self' data: ms-appx-web:;
block-all-mixed-content;
report-uri https://my-reports.com/submit;
</code></pre>
<h2>An policy with unsafe source expressions</h2>
<pre><code>script-src 'self' 'unsafe-eval' 'unsafe-inline';
style-src 'unsafe-inline' 'unsafe-hashed-attributes' 'self';
</code></pre>