tor-browser

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

105-manual.html (850B)


      1 <!doctype html>
      2 <html>
      3  <head>
      4    <title>Origin for http site to site with non-default port</title>
      5    <style type="text/css">
      6 html, body, iframe { display: block; width: 100%; height: 100%; border: none; margin: 0; padding: 0; }
      7    </style>
      8    <script type="text/javascript" src="../resources/crossorigin.sub.js"></script>
      9    <script type="text/javascript">
     10 window.onload = function () {
     11  var origin = 'http://'+httpHostMain;
     12  if( location.href.indexOf(origin+'/') ) {
     13    document.body.innerHTML = 'This must be tested on '+origin+'/';
     14    return;
     15  }
     16  var iframe = document.createElement('iframe');
     17  iframe.src = 'http://'+httpHostMain+location.pathname.replace(/.html$/,'-1.html');
     18  document.body.appendChild(iframe);
     19 };
     20    </script>
     21  </head>
     22  <body>
     23 
     24    <noscript><p>Enable JavaScript and reload</p></noscript>
     25 
     26  </body>
     27 </html>