Skip to content

Commit

Permalink
Merge pull request #180 from kakao-tech-campus-2nd-step3/fix/#150-ref…
Browse files Browse the repository at this point in the history
…reshTokenCookie

[fix] cookie domain 설정
  • Loading branch information
suhyeon7497 authored Nov 14, 2024
2 parents a8d2d71 + 53e4294 commit 0a70c8e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/main/java/team7/inplace/security/util/CookieUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ public class CookieUtil {

public static ResponseCookie createCookie(String key, String value) {
return ResponseCookie.from(key, value)
.sameSite("None")
.secure(true)
.path("/")
.httpOnly(true)
.maxAge(60 * 60)
.build();
.sameSite("None")
.secure(true)
.path("/")
.httpOnly(true)
.domain("inplace.my")
.maxAge(60 * 60)
.build();
}
}

0 comments on commit 0a70c8e

Please sign in to comment.