Skip to content

Commit

Permalink
fix: 쿠키 내 domain 설정 추가 (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamjooon2 authored Oct 18, 2023
1 parent c472031 commit 6fad442
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public RefreshTokenCookieProvider(JwtCredentials jwtCredentials) {
public ResponseCookie createCookie(String refreshToken) {
return ResponseCookie.from(REFRESH_TOKEN, refreshToken)
.sameSite("None")
.domain(".zipgo.pet")
.maxAge(Duration.ofMillis(expirationTime))
.path(VALID_COOKIE_PATH)
.secure(true)
Expand All @@ -33,6 +34,7 @@ public ResponseCookie createCookie(String refreshToken) {
public ResponseCookie createLogoutCookie() {
return ResponseCookie.from(REFRESH_TOKEN, LOGOUT_COOKIE_VALUE)
.sameSite("None")
.domain(".zipgo.pet")
.maxAge(LOGOUT_COOKIE_AGE)
.build();
}
Expand Down

0 comments on commit 6fad442

Please sign in to comment.