tor-browser

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

accept-ch.wildcard.iframe.https.sub.html (591B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <script>
      4 // Step 2 (client-hints/accept-ch.wildcard.https.sub.html)
      5 const xhr = new XMLHttpRequest();
      6 xhr.open('POST', "https://{{domains[www2]}}:{{ports[https][0]}}/client-hints/resources/echo-ua-client-hints-received.py");
      7 xhr.onload = function() {
      8    // Step 3 (client-hints/accept-ch.wildcard.https.sub.html)
      9    if (xhr.getResponseHeader("sec-ch-ua-platform-received") != null) {
     10        window.top.postMessage("HadPlatformVersion", "*");
     11    } else {
     12        window.top.postMessage("MissingPlatformVersion", "*");
     13    }
     14 };
     15 xhr.send();
     16 </script>