tor-browser

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

file_connect-src.html (553B)


      1 <!DOCTYPE HTML>
      2 <html>
      3  <head>
      4    <title>Bug 1031530 - Test mapping of XMLHttpRequest to connect-src</title>
      5  </head>
      6  <body>
      7  <script type="text/javascript">
      8 
      9    try {
     10      // Please note that file_testserver.sjs?foo does not return a response.
     11      // For testing purposes this is not necessary because we only want to check
     12      // whether CSP allows or blocks the load.
     13      var xhr = new XMLHttpRequest();
     14      xhr.open("GET", "file_testserver.sjs?foo", false);
     15      xhr.send(null);
     16    }
     17    catch (e) { }
     18 
     19  </script>
     20 </body>
     21 </html>