Skip to content

Commit

Permalink
[BE] 쿠키 sameSite를 None으로 변경한다. (#968)
Browse files Browse the repository at this point in the history
  • Loading branch information
JINU-CHANG authored Nov 18, 2024
1 parent 599d95a commit 67f33bb
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ public ResponseCookie createRefreshTokenCookie(String token) {
private ResponseCookie createCookie(String tokenName, String token, long expiredMillis, String path) {
return ResponseCookie
.from(tokenName, token)
.domain(domain)
.httpOnly(true)
.secure(true)
.sameSite(SameSite.LAX.attributeValue())
.sameSite(SameSite.NONE.attributeValue())
.maxAge(Duration.ofMillis(expiredMillis))
.path(path)
.build();
Expand All @@ -67,10 +66,9 @@ public ResponseCookie deleteRefreshTokenCookie() {
private ResponseCookie deleteCookie(String tokenName, String path) {
return ResponseCookie
.from(tokenName, "")
.domain(domain)
.httpOnly(true)
.secure(true)
.sameSite(SameSite.LAX.attributeValue())
.sameSite(SameSite.NONE.attributeValue())
.maxAge(0)
.path(path)
.build();
Expand Down

0 comments on commit 67f33bb

Please sign in to comment.