Skip to content

Commit

Permalink
refactor: 쿠키 설정 변경 (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
eom-tae-in authored Aug 16, 2024
1 parent 8b1f746 commit ffc5d8d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public class AdminAuthController {

private static final String COOKIE_NAME = "refreshToken";
private static final String ANY_WAY = "/";
private static final String DOMAIN = ".atwoz";
private static final String NONE = "none";

@Value("${cookie.max-age}")
private int maxAge;
Expand Down Expand Up @@ -72,6 +74,8 @@ private HttpHeaders createCookieHeaders(final String refreshToken) {
.secure(true)
.path(ANY_WAY)
.maxAge(maxAge)
.domain(DOMAIN)
.sameSite(NONE)
.build();
HttpHeaders httpHeaders = new HttpHeaders();
httpHeaders.add(HttpHeaders.SET_COOKIE, cookie.toString());
Expand Down

0 comments on commit ffc5d8d

Please sign in to comment.