Skip to content

Commit

Permalink
feat: 쿠키 httpOnly, secure 속성 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
bflykky committed Aug 2, 2024
1 parent 2f86958 commit e15a1ad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public static void addCookie(HttpServletResponse response, String name, String v
cookie.setPath("/");
cookie.setMaxAge(maxAge);
// HTTPS 적용 시 함께 적용
// cookie.setSecure(true);
// cookie.setHttpOnly(true);
cookie.setSecure(true);
cookie.setHttpOnly(true);
response.addCookie(cookie);
}

Expand Down

0 comments on commit e15a1ad

Please sign in to comment.