Skip to content

Commit

Permalink
fix: 스프링 시큐리티 antPathcer 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin0o0 committed Nov 21, 2023
1 parent 5258a31 commit 3b1574b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
.authorizeHttpRequests(
req -> req
.requestMatchers(PathRequest.toH2Console()).permitAll()
.requestMatchers(HttpMethod.OPTIONS, "/**").permitAll()
.requestMatchers(AntPathRequestMatcher.antMatcher(HttpMethod.OPTIONS, "/**")).permitAll()
.requestMatchers(CorsUtils::isPreFlightRequest).permitAll()
.requestMatchers(AntPathRequestMatcher.antMatcher("/swagger-resources/**")).permitAll()
.requestMatchers(AntPathRequestMatcher.antMatcher("/swagger-ui/**")).permitAll()
Expand Down

0 comments on commit 3b1574b

Please sign in to comment.