<!DOCTYPE HTML>
<html>
  <head>
    <title>Test mixed content download by https-first</title>
  </head>
  <body>
    hi

    <script>
      const host = window.location.host;
      const path = location.pathname.replace("download_page.html","download_server.sjs");

      const insecureLink = document.createElement("a");
      insecureLink.href=`http://${host}${path}`;
      insecureLink.download="true";
      insecureLink.id="insecure";
      insecureLink.textContent="Not secure Link";

      document.body.append(insecureLink);
  </script>
  </body>
</html>
