소스 검색

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

Enrico Berti 8 년 전
부모
커밋
90096b2
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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
+    });
   });
 
 });