Skip to content

Commit

Permalink
hotfix : cookie 도메인 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
oosedus committed Oct 19, 2024
1 parent a48c9d1 commit 2fe8275
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/corecord/dev/common/util/CookieUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public ResponseCookie createTokenCookie(String tokenName, String token) {
.httpOnly(true)
.secure(true) // 배포 시 true로 설정
.sameSite("None")
.domain("localhost") // 배포 시 도메인으로 변경
.path("/")
.maxAge(expirationTime / 1000) // maxAge는 초 단위
.build();
Expand Down

0 comments on commit 2fe8275

Please sign in to comment.