From 859ab9467fd16ed70d1cc4cf1255f2ce8f9238ae Mon Sep 17 00:00:00 2001 From: Luong Minh Luat <157108501+lmluat-axonivy@users.noreply.github.com> Date: Wed, 18 Dec 2024 14:06:35 +0700 Subject: [PATCH] feature/IVYPORTAL-18035-Failure-to-use-secure-cookies (#1318) - 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); }