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 6ebd156..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,16 +12,15 @@ import java.util.Base64; public class CookieUtils { -// private static final String COOKIE_DOMAIN = ".naoman.site"; - private static final String COOKIE_DOMAIN = "localhost"; + 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) -// .sameSite("None") + .secure(true) + .sameSite("None") .build(); response.addHeader(HttpHeaders.SET_COOKIE, cookie.toString());