From 1615b7aa32f10bd44b2c8d0be08d1ce49c5f791a Mon Sep 17 00:00:00 2001 From: Kimtaewan <65708461+ktykty0722@users.noreply.github.com> Date: Fri, 10 Feb 2023 13:42:13 +0900 Subject: [PATCH] =?UTF-8?q?BE=20-=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20?= =?UTF-8?q?=EC=8B=9C=20=EB=B8=8C=EB=9D=BC=EC=9A=B0=EC=A0=80=EC=97=90=20?= =?UTF-8?q?=EC=BF=A0=ED=82=A4=20=EB=82=A8=EC=A7=80=20=EC=95=8A=EB=8D=98=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=B6=94=EA=B0=80=20=EC=88=98=EC=A0=95(#9?= =?UTF-8?q?3)=20(#96)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../amatta/amatta_server/user/controller/UserController.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/amatta_server/src/main/java/com/amatta/amatta_server/user/controller/UserController.java b/amatta_server/src/main/java/com/amatta/amatta_server/user/controller/UserController.java index cffbefc..8d320d5 100644 --- a/amatta_server/src/main/java/com/amatta/amatta_server/user/controller/UserController.java +++ b/amatta_server/src/main/java/com/amatta/amatta_server/user/controller/UserController.java @@ -57,11 +57,9 @@ public ResponseEntity login(@Valid @RequestBody UserLoginReq userLoginReq, Ht HttpSession httpSession = httpServletRequest.getSession(true); httpSession.setAttribute("User", loginUser); ResponseCookie responseCookie = ResponseCookie.from("JSESSIONID", httpSession.getId()) - .domain("amatta.site") + .domain("backend.amatta.site") .httpOnly(true) .path("/") - .secure(true) - .sameSite("None") .build(); httpServletResponse.addHeader("Set-Cookie", responseCookie.toString()); return new ResponseEntity<>(new UserLoginRes(true), HttpStatus.OK);