From 53e4294fd875cc183473cf9d26e255dc37a5e0a2 Mon Sep 17 00:00:00 2001 From: suhyeon7497 Date: Thu, 14 Nov 2024 21:26:53 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20cookie=20domain=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 관련 이슈: #150 --- .../team7/inplace/security/util/CookieUtil.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/java/team7/inplace/security/util/CookieUtil.java b/src/main/java/team7/inplace/security/util/CookieUtil.java index 9f2be3a7..1a8087bb 100644 --- a/src/main/java/team7/inplace/security/util/CookieUtil.java +++ b/src/main/java/team7/inplace/security/util/CookieUtil.java @@ -6,11 +6,12 @@ public class CookieUtil { public static ResponseCookie createCookie(String key, String value) { return ResponseCookie.from(key, value) - .sameSite("None") - .secure(true) - .path("/") - .httpOnly(true) - .maxAge(60 * 60) - .build(); + .sameSite("None") + .secure(true) + .path("/") + .httpOnly(true) + .domain("inplace.my") + .maxAge(60 * 60) + .build(); } }