mirror of https://github.com/hykilpikonna/AquaDX
[F] Fix security config
parent
1bcacbfebe
commit
b64af43a7e
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue