diff --git a/src/main/java/clap/server/adapter/inbound/security/filter/JwtAuthenticationFilter.java b/src/main/java/clap/server/adapter/inbound/security/filter/JwtAuthenticationFilter.java index bb8a27c0..22dbf28d 100644 --- a/src/main/java/clap/server/adapter/inbound/security/filter/JwtAuthenticationFilter.java +++ b/src/main/java/clap/server/adapter/inbound/security/filter/JwtAuthenticationFilter.java @@ -49,13 +49,10 @@ protected void doFilterInternal( @NotNull FilterChain filterChain ) throws ServletException, IOException { try { - if (Arrays.asList(PUBLIC_ENDPOINTS).contains(request.getRequestURI())) { + if (isAnonymousRequest(request)) { filterChain.doFilter(request, response); return; } - if (isAnonymousRequest(request)) { - throw new AuthException(AuthErrorCode.UNAUTHORIZED); - } String accessToken = resolveAccessToken(request);