Ensure user-facing stuff is served over HTTPS

This commit is contained in:
Sainan 2025-04-23 07:50:23 +02:00
parent b040366e65
commit e36e2256bc

View File

@ -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:";
}
</script>