Skip to content

Commit eface62

Browse files
authored
Merge pull request #164 from dnd-side-project/fix/#163-filter
fix : GET, OPTION 요청도 filter를 거치도록 수정
2 parents ac95ce6 + 158e76d commit eface62

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/com/dnd/reevserver/global/jwt/filter/JwtAuthenticationFilter.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ public class JwtAuthenticationFilter extends OncePerRequestFilter {
3939
*/
4040
@Override
4141
protected boolean shouldNotFilter(HttpServletRequest request) throws ServletException {
42-
return request.getMethod().equalsIgnoreCase("GET") ||
43-
request.getMethod().equalsIgnoreCase("OPTIONS") ||
44-
Arrays.stream(SecurityEndpointPaths.WHITE_LIST)
42+
return Arrays.stream(SecurityEndpointPaths.WHITE_LIST)
4543
.anyMatch(path -> PatternMatchUtils.simpleMatch(path, request.getRequestURI()));
4644
}
4745
/**

0 commit comments

Comments
 (0)