tor-browser

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

header-referrer-same-origin.https.html (651B)


      1 <!doctype html>
      2 <html>
      3 <head>
      4 <title>FetchLater Referrer Header: Same Origin Policy</title>
      5 <meta name='referrer' content='same-origin'>
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <script src="/common/utils.js"></script>
      9 <script src="/common/get-host-info.sub.js"></script>
     10 <script src="/fetch/fetch-later/resources/header-referrer-helper.js"></script>
     11 </head>
     12 <body>
     13 <script>
     14 
     15 const {
     16  HTTPS_REMOTE_ORIGIN
     17 } = get_host_info();
     18 
     19 testReferrerHeader(token(), /*host=*/'', REFERRER_URL);
     20 testReferrerHeader(token(), HTTPS_REMOTE_ORIGIN, /*expectedReferrer=*/'');
     21 
     22 </script>
     23 </body>
     24 </html>