From ffc5d8d7a39d23c8312ffbfb8c3f1d002016e320 Mon Sep 17 00:00:00 2001 From: eom-tae-in <101633465+eom-tae-in@users.noreply.github.com> Date: Fri, 16 Aug 2024 10:34:24 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=BF=A0=ED=82=A4=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20=EB=B3=80=EA=B2=BD=20(#58)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/atwoz/admin/ui/auth/AdminAuthController.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/atwoz/admin/ui/auth/AdminAuthController.java b/src/main/java/com/atwoz/admin/ui/auth/AdminAuthController.java index 5bb8438b..267edd71 100644 --- a/src/main/java/com/atwoz/admin/ui/auth/AdminAuthController.java +++ b/src/main/java/com/atwoz/admin/ui/auth/AdminAuthController.java @@ -25,6 +25,8 @@ public class AdminAuthController { private static final String COOKIE_NAME = "refreshToken"; private static final String ANY_WAY = "/"; + private static final String DOMAIN = ".atwoz"; + private static final String NONE = "none"; @Value("${cookie.max-age}") private int maxAge; @@ -72,6 +74,8 @@ private HttpHeaders createCookieHeaders(final String refreshToken) { .secure(true) .path(ANY_WAY) .maxAge(maxAge) + .domain(DOMAIN) + .sameSite(NONE) .build(); HttpHeaders httpHeaders = new HttpHeaders(); httpHeaders.add(HttpHeaders.SET_COOKIE, cookie.toString());