Skip to content

Commit

Permalink
Merge pull request #354 from miIlicon/development
Browse files Browse the repository at this point in the history
CORS 버그 수정
  • Loading branch information
gkfktkrh153 authored Oct 8, 2023
2 parents 4e70d6a + e0b73ba commit e251c99
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ public class JwtAuthenticationFilter extends OncePerRequestFilter {
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {
ObjectMapper objectMapper = new ObjectMapper();
try {
if (request.getMethod().equals("OPTIONS")) {
filterChain.doFilter(request, response);
}

String accessToken = JwtTokenUtils.extractBearerToken(request.getHeader("accessToken"));

if (!request.getRequestURI().equals("/api/v2/member/rotate") && accessToken != null) { // 토큰 재발급의 요청이 아니면서 accessToken이 존재할 때
Expand Down

0 comments on commit e251c99

Please sign in to comment.