From e36e2256bc747645e633b188e0287ba68e9757a2 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Wed, 23 Apr 2025 07:50:23 +0200 Subject: [PATCH] Ensure user-facing stuff is served over HTTPS --- _components/navbar.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/_components/navbar.php b/_components/navbar.php index 9907bb3..2b21e3f 100644 --- a/_components/navbar.php +++ b/_components/navbar.php @@ -30,4 +30,10 @@ $path = strtok($_SERVER["REQUEST_URI"], '?'); { elm.onclick = (event) => { event.preventDefault() }; }); + + // User-facing stuff really has no reason to be served over insecure HTTP. + if (location.host == "openwf.io" && location.protocol == "http:") + { + location.protocol = "https:"; + } \ No newline at end of file