From 0818bf001cc5b65a5e6ba11365d48674374c551a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=99=A9=ED=98=B8=EC=9C=A4?= Date: Sun, 21 Jan 2024 01:54:13 +0900 Subject: [PATCH] =?UTF-8?q?domain=20=EA=B0=92=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/chwipoClova/common/utils/JwtUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/chwipoClova/common/utils/JwtUtil.java b/src/main/java/com/chwipoClova/common/utils/JwtUtil.java index db1bf26..df81cb6 100644 --- a/src/main/java/com/chwipoClova/common/utils/JwtUtil.java +++ b/src/main/java/com/chwipoClova/common/utils/JwtUtil.java @@ -150,10 +150,10 @@ public void setHeaderRefreshToken(HttpServletResponse response, String refreshTo public void setCookieRefreshToken(HttpServletResponse response, String refreshToken) { ResponseCookie responseCookie = ResponseCookie.from(REFRESH_TOKEN, refreshToken) .maxAge(REFRESH_COOKIE_TIME) - .path("/") + //.path("/") .secure(true) - .domain(domain) - //.sameSite("None") + //.domain(domain) + .sameSite("None") .httpOnly(true) .build(); response.addHeader(HttpHeaders.SET_COOKIE, responseCookie.toString());