file_auth_download_page.html (629B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>Test mixed content download with auth header 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("file_auth_download_page.html","file_auth_download_server.sjs"); 12 13 const insecureLink = document.createElement("a"); 14 insecureLink.href = `http://${host}${path}?user=user&pass=pass`; 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>