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 c6a22b3 commit 9629715
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.setHeader("Set-Cookie", "JSESSIONID=" + request.getSession().getId() + "; Path=/; SameSite=None;");
response.setHeader("Set-Cookie", "JSESSIONID=" + request.getSession().getId() + "; Path=/; HttpOnly; SameSite=None;");
response.getWriter().print("{\"success\": true, \"message\": \"Login successful.\", \"data\": {\"username\": \"" + authentication.getName() + "\"}}");
response.getWriter().flush();
}
Expand Down

0 comments on commit 9629715

Please sign in to comment.