Skip to content

Commit a5968b0

Browse files
committed
fix: exclude url 설정
1 parent 6be155b commit a5968b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/myteam/server/global/security/filter/TokenAuthenticationFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class TokenAuthenticationFilter extends OncePerRequestFilter {
4141

4242
@Override
4343
protected boolean shouldNotFilter(HttpServletRequest request) {
44-
String path = request.getServletPath();
44+
String path = request.getRequestURI();
4545
boolean shouldExclude = Arrays.stream(excludePath).anyMatch(path::startsWith);
4646
log.info("[shouldNotFilter] path={}, excluded={}", path, shouldExclude); // 로그 추가
4747
return Arrays.stream(excludePath).anyMatch(path::startsWith);

0 commit comments

Comments
 (0)