Browse Source

Alert on public access over HTTP

Catches a common pitfall when attempting a new installation of Gazelle
spaghetti 7 years ago
parent
commit
1cbbf77ce1
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      static/functions/public.js

+ 4
- 0
static/functions/public.js View File

11
         $('#no-cookies').gshow();
11
         $('#no-cookies').gshow();
12
     }
12
     }
13
   }
13
   }
14
+
15
+  if (location.protocol != 'https:') {
16
+    alert("This Gazelle installation will not be functional unless accessed over HTTPS");
17
+  }
14
 })
18
 })

Loading…
Cancel
Save