개발용 세션 쿠키 내리기

차후 삭제*
This commit is contained in:
nevermoregb 2025-02-13 11:55:48 +09:00
parent 0d6594b439
commit 712ae8e9c2
2 changed files with 11 additions and 2 deletions

View File

@ -73,8 +73,17 @@ public class MemberAuthSuccessHandler implements AuthenticationSuccessHandler {
response.setStatus(HttpStatus.OK.value()); response.setStatus(HttpStatus.OK.value());
response.setContentType(MediaType.APPLICATION_JSON_VALUE); response.setContentType(MediaType.APPLICATION_JSON_VALUE);
/**
* TODO 차후삭제
*
* 세션쿠키값을 스트링 형태로 클라이언트 전달
*/
HttpSession session = request.getSession(false);
String respSessionCookie = session.getId();
response.getWriter().write(mapper.writeValueAsString(ApiResponse.ok(respSessionCookie)));
response.getWriter().write(mapper.writeValueAsString(ApiResponse.ok("Success"))); //response.getWriter().write(mapper.writeValueAsString(ApiResponse.ok("Success")));
clearAuthenticationAttributes(request); clearAuthenticationAttributes(request);
} }

View File

@ -78,7 +78,7 @@ server:
cookie: cookie:
path: / path: /
# 쿠키 보안 설정 # 쿠키 보안 설정
http-only: true http-only: false
secure: true secure: true
same-site: NONE same-site: NONE