Skip to content

Commit

Permalink
[fix] cookie domain 설정
Browse files Browse the repository at this point in the history
관련 이슈: #150
  • Loading branch information
suhyeon7497 committed Nov 14, 2024
1 parent 31231f8 commit 53e4294
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 53e4294

Please sign in to comment.