Skip to content

Commit

Permalink
🐛 [FIX] CORS 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
ddongseop committed Jan 16, 2024
1 parent d9db15f commit 970d66d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityCustomizer;
import org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer;
import org.springframework.security.config.http.SessionCreationPolicy;
import org.springframework.security.web.SecurityFilterChain;
Expand Down Expand Up @@ -56,11 +55,4 @@ public CorsFilter corsFilter() {
source.registerCorsConfiguration("/**", config);
return new CorsFilter(source);
}

@Bean
public WebSecurityCustomizer webSecurityCustomizer() {
return web -> web.ignoring().requestMatchers(
"/swagger-ui/**", "/swagger-resources/**", "/api-docs/**",
"/v3/api-docs/**", "/webjars/**");
}
}
4 changes: 0 additions & 4 deletions src/main/resources/logback-dev.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
<logger name="org.springframework.context.support.PostProcessorRegistrationDelegate" level="WARN"/>
<logger name="org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport"
level="WARN"/>
<logger name="org.springframework.security.config.annotation.web.builders.WebSecurity"
level="ERROR"/>
<logger name="org.springframework.security.web.DefaultSecurityFilterChain"
level="ERROR"/>
</springProfile>

</configuration>
4 changes: 0 additions & 4 deletions src/main/resources/logback-local.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,5 @@
<logger name="org.springframework.context.support.PostProcessorRegistrationDelegate" level="WARN"/>
<logger name="org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport"
level="WARN"/>
<logger name="org.springframework.security.config.annotation.web.builders.WebSecurity"
level="ERROR"/>
<logger name="org.springframework.security.web.DefaultSecurityFilterChain"
level="ERROR"/>
</springProfile>
</configuration>

0 comments on commit 970d66d

Please sign in to comment.