content/base/test/csp/file_bug886164.html

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:eee915263328
1 <html>
2 <head> <meta charset="utf-8"> </head>
3 <body>
4 <!-- sandbox="allow-same-origin" -->
5 <!-- Content-Security-Policy: default-src 'self' -->
6
7 <!-- these should be stopped by CSP -->
8 <img src="http://example.org/tests/content/base/test/csp/file_CSP.sjs?testid=img_bad&type=img/png"> </img>
9
10 <!-- these should load ok -->
11 <img src="/tests/content/base/test/csp/file_CSP.sjs?testid=img_good&type=img/png" />
12 <script src='/tests/content/base/test/csp/file_CSP.sjs?testid=scripta_bad&type=text/javascript'></script>
13
14 </body>
15 </html>

mercurial