Added http to https redirects

This commit is contained in:
Nathan Woodburn
2022-02-05 18:47:52 +11:00
parent 4e9ce89fd7
commit 03dbb5c5fd
9 changed files with 41 additions and 23 deletions

6
https.js Normal file
View File

@@ -0,0 +1,6 @@
if (location.protocol !== 'https:') {
location.replace(`https:${location.href.substring(location.protocol.length)}`);
}
else{
console.log("Already Https");
}