Skip to content

Commit

Permalink
Merge pull request #492 from SWM-NM/feat/#489
Browse files Browse the repository at this point in the history
🐛 [FIX] swagger 오류 해결 #489
  • Loading branch information
miiiinju1 authored Oct 20, 2023
2 parents 6115659 + 1b32d7f commit ba25871
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,23 @@
public class SecurityConfig {

private final FilterConfig filterConfig;
//private final JwtAuthException jwtAuthException;

@Bean
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception{

http
http
.httpBasic().disable()
.csrf().disable()
.cors()
.and()

.authorizeRequests()
.antMatchers("/oauths/**").permitAll()
.antMatchers("/swagger-ui/**", "/swagger-resources/**", "/v3/api-docs/**").permitAll()
.anyRequest().authenticated()
.and()

.sessionManagement()
.sessionCreationPolicy(SessionCreationPolicy.STATELESS)
.and()
Expand Down

0 comments on commit ba25871

Please sign in to comment.