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 8d320d5..4ccdfa0 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,9 +57,10 @@ 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("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);