[F] Fix security config

pull/14/head
Azalea 2024-02-16 17:07:45 -05:00
parent 1bcacbfebe
commit b64af43a7e
1 changed files with 4 additions and 6 deletions

View File

@ -32,12 +32,10 @@ public class SecurityConfig {
@Bean @Bean
public SecurityFilterChain configure(HttpSecurity http) throws Exception { public SecurityFilterChain configure(HttpSecurity http) throws Exception {
http http.headers(headers -> headers.disable())
.headers().disable() .cors(cors -> cors.disable())
.cors().and() .csrf(csrf -> csrf.disable())
.csrf().disable() .authorizeHttpRequests(authorize -> authorize.anyRequest().permitAll());
.authorizeRequests()
.anyRequest().permitAll();
return http.build(); return http.build();
} }