From d6fcf25878eca619041b37847fd26d52b43585dd Mon Sep 17 00:00:00 2001 From: HeeSung98 Date: Tue, 28 Nov 2023 13:36:22 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BF=A0=ED=82=A4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/weather/user/security/handler/LoginSuccessHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/src/main/java/com/weather/user/security/handler/LoginSuccessHandler.java b/user/src/main/java/com/weather/user/security/handler/LoginSuccessHandler.java index 704c175..4927aca 100644 --- a/user/src/main/java/com/weather/user/security/handler/LoginSuccessHandler.java +++ b/user/src/main/java/com/weather/user/security/handler/LoginSuccessHandler.java @@ -52,7 +52,7 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo String userinfo = authUserDTO.getEmail() + "|" + authUserDTO.getName() + "|" + authUserDTO.getImage(); Cookie cookieUserinfo = new Cookie("userinfo", userinfo); cookieUserinfo.setHttpOnly(false); - cookieToken.setSecure(true); + cookieUserinfo.setSecure(true); cookieUserinfo.setMaxAge(3 * 60 * 60); response.addCookie(cookieUserinfo);