Skip to content

Commit

Permalink
sercurity config 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
yooonwodyd committed Feb 20, 2024
1 parent a617010 commit 8637640
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public SecurityFilterChain securityFilterChain(
.successHandler(
(request, response, authentication) -> {
response.setStatus(HttpServletResponse.SC_OK);
response.setContentType("application/json");
response.setHeader("Set-Cookie", "JSESSIONID=" + request.getSession().getId() + "; Path=/; HttpOnly");
response.getWriter().print("{\"success\": true, \"message\": \"Login successful.\", \"data\": {\"username\": \"" + authentication.getName() + "\"}}");
response.getWriter().flush();
}
Expand Down

0 comments on commit 8637640

Please sign in to comment.