diff --git a/src/main/java/com/umc/naoman/global/security/util/CookieUtils.java b/src/main/java/com/umc/naoman/global/security/util/CookieUtils.java index eba6a9a..3706657 100644 --- a/src/main/java/com/umc/naoman/global/security/util/CookieUtils.java +++ b/src/main/java/com/umc/naoman/global/security/util/CookieUtils.java @@ -12,9 +12,11 @@ import java.util.Base64; public class CookieUtils { + private static final String COOKIE_DOMAIN = ".naoman.site"; public static void addCookie(HttpServletResponse response, String name, String value, int maxAge) { ResponseCookie cookie = ResponseCookie.from(name, value) .path("/") + .domain(COOKIE_DOMAIN) .maxAge(maxAge) .httpOnly(false) .secure(true)