Browse Source

HUE-5702 [security] Mark as secure the hueLandingPage cookie if on https

Enrico Berti 8 years ago
parent
commit
90096b2
1 changed files with 4 additions and 1 deletions
  1. 4 1
      apps/about/src/about/templates/admin_wizard.mako

+ 4 - 1
apps/about/src/about/templates/admin_wizard.mako

@@ -393,7 +393,10 @@ $(document).ready(function(){
   $("#updateSkipWizard").prop('checked', $.cookie("hueLandingPage", {path: "/"}) == "home");
 
   $("#updateSkipWizard").change(function () {
-    $.cookie("hueLandingPage", this.checked ? "home" : "wizard", {path: "/"});
+    $.cookie("hueLandingPage", this.checked ? "home" : "wizard", {
+      path: "/",
+      secure: window.location.protocol.indexOf('https') > -1
+    });
   });
 
 });