Skip to content

Commit

Permalink
design : 필터에서 갱신해주는 accessToken에 도메인 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
kyumho kim committed Feb 2, 2024
1 parent 41971e0 commit ac8087b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
ResponseCookie newAccessTokenCookie = ResponseCookie.from("accessToken", newAccessToken)
.httpOnly(true)
.path("/")
.domain(".llcode.me")
.secure(true)
.sameSite("None") // SameSite 설정
.sameSite("Strict") // SameSite 설정
.build();

response.addHeader("Set-Cookie", newAccessTokenCookie.toString());
Expand Down

0 comments on commit ac8087b

Please sign in to comment.