Skip to content

Commit

Permalink
chore: same site
Browse files Browse the repository at this point in the history
  • Loading branch information
drunkenhw committed Sep 29, 2023
1 parent 2379720 commit 15c1e7b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public ResponseCookie createCookie(String refreshToken) {
return ResponseCookie.from(REFRESH_TOKEN, refreshToken)
.maxAge(Duration.ofMillis(expireLength))
.path(VALID_COOKIE_PATH)
.sameSite("None")
.secure(true)
.httpOnly(true)
.build();
Expand All @@ -29,6 +30,9 @@ public ResponseCookie createCookie(String refreshToken) {
public ResponseCookie createLogoutCookie() {
return ResponseCookie.from(REFRESH_TOKEN, LOGOUT_COOKIE_VALUE)
.maxAge(LOGOUT_COOKIE_AGE)
.sameSite("None")
.secure(true)
.httpOnly(true)
.build();
}

Expand Down

0 comments on commit 15c1e7b

Please sign in to comment.