Skip to content

Commit

Permalink
Fix: 쿠키에 도메인 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
diddnwjd committed Mar 7, 2024
1 parent 03eba7a commit 9cd9ea6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/ixxp/culpop/util/jwtutil/JwtUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public Cookie createAccessTokenCookie(String email, UserRoleEnum role) {
cookie.setMaxAge((int) (ACCESS_TOKEN_TIME / 1000)); // 초 단위로 설정
cookie.setPath("/");
cookie.setHttpOnly(true);
cookie.setDomain(".culpop.shop");
return cookie;
}
// admin token 생성
Expand Down

0 comments on commit 9cd9ea6

Please sign in to comment.