Skip to content

Commit

Permalink
Fix: delete some cookie options
Browse files Browse the repository at this point in the history
  • Loading branch information
emost22 committed Jul 17, 2024
1 parent 285adc3 commit c8a6a2c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/main/java/com/sirius/spurt/common/jwt/JwtUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,7 @@ public void setRefreshToken(HttpServletResponse response, String userId, String

private void setCookie(HttpServletResponse response, String key, String token, Long expireTime) {
ResponseCookie responseCookie =
ResponseCookie.from(key, token)
.path("/")
.sameSite("None")
.httpOnly(false)
.secure(true)
.maxAge(Math.toIntExact(expireTime))
.build();
ResponseCookie.from(key, token).path("/").maxAge(Math.toIntExact(expireTime)).build();
response.addHeader("Set-Cookie", responseCookie.toString());
}

Expand Down

0 comments on commit c8a6a2c

Please sign in to comment.