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 4ccdfa0..cffbefc 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,6 +57,7 @@ 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") .httpOnly(true) .path("/") .secure(true)