diff --git a/src/main/java/com/efub/dhs/global/config/SecurityConfig.java b/src/main/java/com/efub/dhs/global/config/SecurityConfig.java index 33469d8..f8848e3 100644 --- a/src/main/java/com/efub/dhs/global/config/SecurityConfig.java +++ b/src/main/java/com/efub/dhs/global/config/SecurityConfig.java @@ -33,12 +33,9 @@ public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws .and() .authorizeRequests() .antMatchers(HttpMethod.OPTIONS).permitAll() - .antMatchers("/programs/created", - "/programs/liked", - "/programs/registered", - "/auth/logout").authenticated() + .antMatchers("/programs/created", "/programs/liked", "/programs/registered", "/auth/logout").authenticated() .antMatchers("/auth/**", "/oauth/**").permitAll() - .antMatchers(HttpMethod.GET, "/programs", "/programs/*").permitAll() + .antMatchers(HttpMethod.GET, "/docs", "/swagger-ui/**", "/programs", "/programs/*").permitAll() .anyRequest().authenticated() .and() .addFilterBefore(new JwtFilter(jwtAuthProvider), UsernamePasswordAuthenticationFilter.class)