去除前端页面强制跳转https
This commit is contained in:
parent
1ab3cebf83
commit
62e1eff1cf
|
@ -80,10 +80,6 @@
|
|||
e.preventDefault()
|
||||
})
|
||||
|
||||
if (window.location.protocol === 'http:') { // http 强制改成 https
|
||||
window.location.href = window.location.href.replace('http:', 'https:');
|
||||
}
|
||||
|
||||
}
|
||||
</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>
|
||||
|
|
Loading…
Reference in New Issue