file_sandbox_7.html (557B)
1 <html> 2 <head> <meta charset="utf-8"> </head> 3 <body> 4 <!-- Content-Security-Policy: default-src 'self'; sandbox allow-same-origin --> 5 6 <!-- these should be stopped by CSP --> 7 <img src="http://example.org/tests/dom/security/test/csp/file_CSP.sjs?testid=img7_bad&type=img/png"> </img> 8 9 <!-- these should load ok --> 10 <img src="/tests/dom/security/test/csp/file_CSP.sjs?testid=img7a_good&type=img/png" /> 11 <!-- should not execute script --> 12 <script src='/tests/dom/security/test/csp/file_sandbox_fail.js'></script> 13 14 </body> 15 </html>