Skip to content

Commit

Permalink
♻️ : CORS 에러
Browse files Browse the repository at this point in the history
  • Loading branch information
imenuuu committed May 5, 2024
1 parent aba8e46 commit 33b1204
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/example/runway/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ protected void configure(HttpSecurity httpSecurity) throws Exception {
.authorizeRequests()
.requestMatchers(CorsUtils::isPreFlightRequest).permitAll()

.antMatchers("/swagger-resources/**").permitAll()
.antMatchers("/swagger-resources/**").permitAll()
.antMatchers("/swagger-ui/**").permitAll()
.antMatchers("/webjars/**").permitAll()
.antMatchers("/v3/api-docs").permitAll()
.antMatchers("/test/img").permitAll()
.antMatchers("/login/**").permitAll()
.antMatchers("/health").permitAll()
.antMatchers("/admin/**").hasAnyRole("ADMIN")
.antMatchers("/admin/users/info").hasAnyRole("ADMIN")
.antMatchers("/admin/users/logIn").permitAll()

.anyRequest().authenticated()
Expand Down

0 comments on commit 33b1204

Please sign in to comment.