Skip to content

Commit 3ec15d6

Browse files
authored
feat(Cookie): subDomain cookie 공유 (#164)
- .domain()을 통해서 서브 도메인 명시 - samesite 설정 변경
1 parent 2a7f4b7 commit 3ec15d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/somemore/auth/cookie/CookieService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ public void deleteAccessToken(HttpServletResponse response) {
2828

2929
private static ResponseCookie generateCookie(TokenType tokenType, String value) {
3030
return ResponseCookie.from(TokenType.ACCESS.name(), value) // 덮어쓰기 위해서 고정 값
31+
.domain(".somemore.site")
3132
.httpOnly(true)
3233
.secure(true)
3334
.path("/")
3435
.maxAge(tokenType.getPeriodInSeconds())
35-
.sameSite("Lax")
36+
.sameSite("None")
3637
.build();
3738
}
3839
}

0 commit comments

Comments
 (0)