download_page.html (564B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>Test mixed content download by https-first</title> 5 </head> 6 <body> 7 hi 8 9 <script> 10 const host = window.location.host; 11 const path = location.pathname.replace("download_page.html","download_server.sjs"); 12 13 const insecureLink = document.createElement("a"); 14 insecureLink.href=`http://${host}${path}`; 15 insecureLink.download="true"; 16 insecureLink.id="insecure"; 17 insecureLink.textContent="Not secure Link"; 18 19 document.body.append(insecureLink); 20 </script> 21 </body> 22 </html>