109-manual.html (854B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>Origin for https 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 = 'https://'+httpsHostAlias+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>