tor-browser

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

file_main.js (718B)


      1 function doXHR(uri) {
      2  try {
      3    var xhr = new XMLHttpRequest();
      4    xhr.open("GET", uri);
      5    xhr.send();
      6  } catch (ex) {}
      7 }
      8 
      9 doXHR(
     10  "http://mochi.test:8888/tests/dom/security/test/csp/file_CSP.sjs?testid=xhr_good"
     11 );
     12 doXHR(
     13  "http://example.com/tests/dom/security/test/csp/file_CSP.sjs?testid=xhr_bad"
     14 );
     15 fetch(
     16  "http://mochi.test:8888/tests/dom/security/test/csp/file_CSP.sjs?testid=fetch_good"
     17 );
     18 fetch(
     19  "http://example.com/tests/dom/security/test/csp/file_CSP.sjs?testid=fetch_bad"
     20 );
     21 navigator.sendBeacon(
     22  "http://mochi.test:8888/tests/dom/security/test/csp/file_CSP.sjs?testid=beacon_good"
     23 );
     24 navigator.sendBeacon(
     25  "http://example.com/tests/dom/security/test/csp/file_CSP.sjs?testid=beacon_bad"
     26 );