From 09569a80f8811cb056a39996ff537124e1d5552b Mon Sep 17 00:00:00 2001 From: bflykky Date: Fri, 23 Aug 2024 17:28:11 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A1=9C=EC=BB=AC=20=ED=99=98=EA=B2=BD?= =?UTF-8?q?=EC=97=90=EC=84=9C=EC=9D=98=20=EC=BD=94=EB=93=9C=20=EC=8B=A4?= =?UTF-8?q?=EC=88=98=EB=A1=9C=20push=EB=90=9C=20=EB=B6=80=EB=B6=84=20?= =?UTF-8?q?=EB=A1=A4=EB=B0=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/umc/naoman/global/security/util/CookieUtils.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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());