forked from OpenWF/Website
Ensure user-facing stuff is served over HTTPS
This commit is contained in:
parent
b040366e65
commit
e36e2256bc
@ -30,4 +30,10 @@ $path = strtok($_SERVER["REQUEST_URI"], '?');
|
|||||||
{
|
{
|
||||||
elm.onclick = (event) => { event.preventDefault() };
|
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>
|
</script>
|
Loading…
x
Reference in New Issue
Block a user