Skip to content

Commit

Permalink
fix: 헤더 변환 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
uwoobeat committed Jan 31, 2024
1 parent 45183a0 commit 37b8170
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public class JwtAuthenticationFilter extends OncePerRequestFilter {
private final CookieUtil cookieUtil;

private static String extractAccessTokenFromHeader(HttpServletRequest request) {
return Optional.ofNullable(request.getHeader(ACCESS_TOKEN_HEADER))
return Optional.ofNullable(request.getHeader(HttpHeaders.AUTHORIZATION))
.filter(header -> header.startsWith(TOKEN_PREFIX))
.map(header -> header.replace(TOKEN_PREFIX, ""))
.orElse(null);
}
Expand Down

0 comments on commit 37b8170

Please sign in to comment.