[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
public SecurityFilterChain configure(HttpSecurity http) throws Exception {
http
.headers().disable()
.cors().and()
.csrf().disable()
.authorizeRequests()
.anyRequest().permitAll();
http.headers(headers -> headers.disable())
.cors(cors -> cors.disable())
.csrf(csrf -> csrf.disable())
.authorizeHttpRequests(authorize -> authorize.anyRequest().permitAll());
return http.build();
}