Skip to content

Commit

Permalink
[feat #191] 쿠키 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
dudxo committed Jan 14, 2025
1 parent c68665e commit 9a32d29
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ public class CookieUtil {
public Cookie createCookie(String token) {
Cookie cookie = new Cookie("Authorization", token);
cookie.setPath("/");
cookie.setMaxAge(1000 * 60 * 60);
cookie.setMaxAge(60 * 60);
cookie.setHttpOnly(true);
cookie.setSecure(true);
cookie.setAttribute("SameSite", "None");
cookie.setAttribute("SameSite", "Lax");
return cookie;
}

Expand Down

0 comments on commit 9a32d29

Please sign in to comment.