Skip to content

Commit

Permalink
Merge pull request #211 from APPS-sookmyung/dev
Browse files Browse the repository at this point in the history
[Fix] setSecure 속성 설정
  • Loading branch information
ajung7038 authored Jan 2, 2025
2 parents 547fc97 + 9f93308 commit 939ab7b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public String callback(@RequestParam("code") String code, HttpServletResponse re
// 5. 쿠키에 JWT 저장
Cookie jwtCookie = new Cookie("jwtToken", jwtToken);
jwtCookie.setHttpOnly(true);
// jwtCookie.setSecure(true); // HTTPS에서만 전송
jwtCookie.setSecure(true); // HTTPS에서만 전송
jwtCookie.setMaxAge(60 * 60 * 24); // 쿠키 유효 시간 설정
jwtCookie.setPath("/");
jwtCookie.setDomain(domain);
Expand Down

0 comments on commit 939ab7b

Please sign in to comment.