File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed
src/main/java/inha/gdgoc/global/security Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -24,16 +24,19 @@ public class TokenAuthenticationFilter extends OncePerRequestFilter {
2424
2525 @ Override
2626 protected boolean shouldNotFilter (HttpServletRequest request ) {
27- String p = request .getRequestURI ();
28- return p .startsWith ("/v3/api-docs" )
29- || p .startsWith ("/swagger-ui" )
30- || p .equals ("/swagger-ui.html" )
31- || p .startsWith ("/auth/" )
32- || p .startsWith ("/test/" )
33- || p .startsWith ("/game/" )
34- || p .startsWith ("/apply/" )
35- || p .startsWith ("/check/" )
36- || "OPTIONS" .equalsIgnoreCase (request .getMethod ());
27+ if ("OPTIONS" .equalsIgnoreCase (request .getMethod ())) {
28+ return true ;
29+ }
30+
31+ String uri = request .getRequestURI ();
32+ return uri .startsWith ("/v3/api-docs" )
33+ || uri .startsWith ("/swagger-ui" )
34+ || uri .equals ("/swagger-ui.html" )
35+ || uri .startsWith ("/api/v1/auth/" )
36+ || uri .startsWith ("/api/v1/test/" )
37+ || uri .startsWith ("/api/v1/game/" )
38+ || uri .startsWith ("/api/v1/apply/" )
39+ || uri .startsWith ("/api/v1/check/" );
3740 }
3841
3942 @ Override
You can’t perform that action at this time.
0 commit comments