file_sandbox_1.html (571B)
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/dom/security/test/csp/file_CSP.sjs?testid=img1_bad&type=img/png"> </img> 9 10 <!-- these should load ok --> 11 <img src="/tests/dom/security/test/csp/file_CSP.sjs?testid=img1a_good&type=img/png" /> 12 <!-- should not execute script --> 13 <script src='/tests/dom/security/test/csp/file_sandbox_fail.js'></script> 14 15 </body> 16 </html>