From e579b7d6609ed65a9907744b87731b4bd1c32723 Mon Sep 17 00:00:00 2001 From: Goathoon Date: Wed, 13 Dec 2023 12:05:56 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=8F=84=EB=A9=94=EC=9D=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=EC=9C=BC=EB=A1=9C=20=EC=9D=B8=ED=95=9C=20=EC=BF=A0?= =?UTF-8?q?=ED=82=A4=20=EB=A1=9C=EA=B7=B8=EC=95=84=EC=9B=83=20=EB=8F=84?= =?UTF-8?q?=EB=A9=94=EC=9D=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/Funssion/Inforum/domain/post/utils/AuthUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/Funssion/Inforum/domain/post/utils/AuthUtils.java b/src/main/java/Funssion/Inforum/domain/post/utils/AuthUtils.java index bcbbb030..45e29b10 100644 --- a/src/main/java/Funssion/Inforum/domain/post/utils/AuthUtils.java +++ b/src/main/java/Funssion/Inforum/domain/post/utils/AuthUtils.java @@ -22,8 +22,8 @@ public static Long getUserId(CRUDType type) { public static void logout(HttpServletRequest request, HttpServletResponse response) { Cookie[] cookies = request.getCookies(); - ResponseCookie invalidateAccessCookie = ResponseCookie.from("accessToken", "none").maxAge(0).path("/").domain(".inforum.me").sameSite("none").httpOnly(true).secure(true).build(); - ResponseCookie invalidateRefreshCookie = ResponseCookie.from("refreshToken", "none").maxAge(0).path("/").domain(".inforum.me").sameSite("none").httpOnly(true).secure(true).build(); + ResponseCookie invalidateAccessCookie = ResponseCookie.from("accessToken", "none").maxAge(0).path("/").domain(".inforum24.com").sameSite("none").httpOnly(true).secure(true).build(); + ResponseCookie invalidateRefreshCookie = ResponseCookie.from("refreshToken", "none").maxAge(0).path("/").domain(".inforum24.com").sameSite("none").httpOnly(true).secure(true).build(); response.addHeader("Set-Cookie", invalidateAccessCookie.toString()); response.addHeader("Set-Cookie",invalidateRefreshCookie.toString()); }