Skip to content

Commit

Permalink
refresh token 로직 수정
Browse files Browse the repository at this point in the history
- 쿠키 ACCESS_CONTROL_ALLOW_CREDENTIALS 설정 추가
  • Loading branch information
DEREVGEN committed Oct 2, 2023
1 parent 1ac5263 commit 2e12793
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ public static ResponseEntity<ResSignInDto> createResponseWithCookieAndBody(AuthI
.domain("api.chagok.site")
.build();

return ResponseEntity.ok().header(HttpHeaders.SET_COOKIE, refreshCookie.toString()).body(authInfo.getSignInResDto());

return ResponseEntity.ok()
.header(HttpHeaders.SET_COOKIE, refreshCookie.toString())
.header(HttpHeaders.ACCESS_CONTROL_ALLOW_CREDENTIALS, "true")
.body(authInfo.getSignInResDto());
}

public static void jwtExpiredJsonResponse(HttpServletResponse response) throws IOException {
Expand Down

0 comments on commit 2e12793

Please sign in to comment.