diff --git a/src/main/java/com/dnd/gongmuin/security/jwt/util/CookieUtil.java b/src/main/java/com/dnd/gongmuin/security/jwt/util/CookieUtil.java index f790982f..6bfa4b2b 100644 --- a/src/main/java/com/dnd/gongmuin/security/jwt/util/CookieUtil.java +++ b/src/main/java/com/dnd/gongmuin/security/jwt/util/CookieUtil.java @@ -18,10 +18,10 @@ public class CookieUtil { public Cookie createCookie(String token) { Cookie cookie = new Cookie("Authorization", token); cookie.setPath("/"); - cookie.setMaxAge(1000 * 60 * 60); + cookie.setMaxAge(60 * 60); cookie.setHttpOnly(true); cookie.setSecure(true); - cookie.setAttribute("SameSite", "None"); + cookie.setAttribute("SameSite", "Lax"); return cookie; }