From a4c78d7551d972a451f5b15cbc3303575fa6293b Mon Sep 17 00:00:00 2001 From: lmluat-axonivy Date: Tue, 17 Dec 2024 15:01:30 +0700 Subject: [PATCH] feature/IVYPORTAL-18035-Failure-to-use-secure-cookies - Set secure true for cookie --- .../portal/src/ch/ivy/addon/portalkit/util/CookieHelper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/AxonIvyPortal/portal/src/ch/ivy/addon/portalkit/util/CookieHelper.java b/AxonIvyPortal/portal/src/ch/ivy/addon/portalkit/util/CookieHelper.java index 0408b8e8451..2e7d1520ee6 100644 --- a/AxonIvyPortal/portal/src/ch/ivy/addon/portalkit/util/CookieHelper.java +++ b/AxonIvyPortal/portal/src/ch/ivy/addon/portalkit/util/CookieHelper.java @@ -39,6 +39,7 @@ public void setCookie(String name, String value) { } } cookie.setPath("/"); + cookie.setSecure(true); HttpServletResponse response = (HttpServletResponse) facesContext.getExternalContext().getResponse(); response.addCookie(cookie); }