From c6a22b30297b04eb8167c098014271126f0d1a07 Mon Sep 17 00:00:00 2001 From: yooonwodyd Date: Tue, 20 Feb 2024 13:32:51 +0900 Subject: [PATCH] =?UTF-8?q?sercurity=20config=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/gdsc/pikpet/config/security/SecurityConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gdsc/pikpet/config/security/SecurityConfig.java b/src/main/java/com/gdsc/pikpet/config/security/SecurityConfig.java index 368a13c..e3f5985 100644 --- a/src/main/java/com/gdsc/pikpet/config/security/SecurityConfig.java +++ b/src/main/java/com/gdsc/pikpet/config/security/SecurityConfig.java @@ -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=/; HttpOnly; SameSite=None;"); + response.setHeader("Set-Cookie", "JSESSIONID=" + request.getSession().getId() + "; Path=/; SameSite=None;"); response.getWriter().print("{\"success\": true, \"message\": \"Login successful.\", \"data\": {\"username\": \"" + authentication.getName() + "\"}}"); response.getWriter().flush(); }