tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

html_csp-resend-test-page.html (819B)


      1 <!DOCTYPE HTML>
      2 <html>
      3  <head>
      4    <meta charset=utf-8>
      5    <meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src *; script-src 'unsafe-inline'">
      6    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
      7    <meta http-equiv="Pragma" content="no-cache" />
      8    <meta http-equiv="Expires" content="0" />
      9    <title>Tests 'Edit and Resend' requests re-uses the same content-type</title>
     10  </head>
     11  <body>
     12    The image will be allowed to load by the CSP.<br/>
     13    <img id="test-img"></img><br/>
     14    <script type="text/javascript">
     15      /* exported performRequests */
     16      "use strict";
     17 
     18      function performRequests() {
     19        const testImg = document.getElementById("test-img");
     20        testImg.src = "test-image.png";
     21      }
     22 
     23    </script>
     24  </body>
     25 </html>