From 6fad442c8823d57773cf6694635459a8e6a31870 Mon Sep 17 00:00:00 2001 From: iamjooon2 Date: Wed, 18 Oct 2023 17:42:40 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=BF=A0=ED=82=A4=20=EB=82=B4=20domain?= =?UTF-8?q?=20=EC=84=A4=EC=A0=95=20=EC=B6=94=EA=B0=80=20(#498)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/zipgo/auth/support/RefreshTokenCookieProvider.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/main/java/zipgo/auth/support/RefreshTokenCookieProvider.java b/backend/src/main/java/zipgo/auth/support/RefreshTokenCookieProvider.java index ea5ea66e..36866e24 100644 --- a/backend/src/main/java/zipgo/auth/support/RefreshTokenCookieProvider.java +++ b/backend/src/main/java/zipgo/auth/support/RefreshTokenCookieProvider.java @@ -23,6 +23,7 @@ public RefreshTokenCookieProvider(JwtCredentials jwtCredentials) { public ResponseCookie createCookie(String refreshToken) { return ResponseCookie.from(REFRESH_TOKEN, refreshToken) .sameSite("None") + .domain(".zipgo.pet") .maxAge(Duration.ofMillis(expirationTime)) .path(VALID_COOKIE_PATH) .secure(true) @@ -33,6 +34,7 @@ public ResponseCookie createCookie(String refreshToken) { public ResponseCookie createLogoutCookie() { return ResponseCookie.from(REFRESH_TOKEN, LOGOUT_COOKIE_VALUE) .sameSite("None") + .domain(".zipgo.pet") .maxAge(LOGOUT_COOKIE_AGE) .build(); }