basic-link-upgrade.sub.html (691B)
1 <html> 2 <title>Upgrade Insecure Requests: link upgrade.</title> 3 <head> 4 <script> 5 function click() { 6 document.getElementById("link").click(); 7 } 8 </script> 9 </head> 10 <body onload="click()"> 11 <!-- 12 This is a bit of a hack. UPGRADE doesn't upgrade the port number, so we 13 specify this non-existent URL ('http' over https port). If UPGRADE doesn't 14 work, it won't load. The expected behavior is that the url is upgraded and 15 the page loads. 16 --> 17 <a id="link" href="http://{{host}}:{{ports[https][0]}}/upgrade-insecure-requests/link-upgrade/resources/post-message-to-opener.sub.html?message=basic-link-upgrade"> Click me </a> 18 </body> 19 </html>