From ae748eba29956cead3f0fc6686692de1cd9b9de7 Mon Sep 17 00:00:00 2001 From: bflykky Date: Sun, 18 Aug 2024 12:09:19 +0900 Subject: [PATCH] =?UTF-8?q?feature:=20=EC=BF=A0=ED=82=A4=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1=20=EC=8B=9C=20=EB=8F=84=EB=A9=94=EC=9D=B8=20".naoman.?= =?UTF-8?q?site"=EB=A1=9C=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/umc/naoman/global/security/util/CookieUtils.java | 2 ++ 1 file changed, 2 insertions(+) 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 eba6a9ae..37066570 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)