diff --git a/src/main/java/com/moabam/global/common/util/CookieUtils.java b/src/main/java/com/moabam/global/common/util/CookieUtils.java index 14c6866a..f45ae1fe 100644 --- a/src/main/java/com/moabam/global/common/util/CookieUtils.java +++ b/src/main/java/com/moabam/global/common/util/CookieUtils.java @@ -11,7 +11,7 @@ public static Cookie tokenCookie(String name, String value, long expireTime, Str Cookie cookie = new Cookie(name, value); cookie.setSecure(true); cookie.setHttpOnly(true); - cookie.setDomain("moabam.com"); + cookie.setDomain(".moabam.com"); cookie.setPath("/"); cookie.setMaxAge((int)expireTime); cookie.setAttribute("SameSite", "Lax"); @@ -23,7 +23,7 @@ public static Cookie typeCookie(String value, long expireTime, String domain) { Cookie cookie = new Cookie("token_type", value); cookie.setSecure(true); cookie.setHttpOnly(true); - cookie.setDomain("moabam.com"); + cookie.setDomain(".moabam.com"); cookie.setPath("/"); cookie.setMaxAge((int)expireTime); cookie.setAttribute("SameSite", "Lax");