去除前端页面强制跳转https

This commit is contained in:
lingling 2025-02-18 22:07:24 +08:00
parent 1ab3cebf83
commit 62e1eff1cf
1 changed files with 0 additions and 4 deletions

View File

@ -80,10 +80,6 @@
e.preventDefault() e.preventDefault()
}) })
if (window.location.protocol === 'http:') { // http 强制改成 https
window.location.href = window.location.href.replace('http:', 'https:');
}
} }
</script> </script>
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script> <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>