Commit 55de9f88 by Patryk Czarnik

przywrócenie CSRF

parent d0008c2f
...@@ -13,8 +13,7 @@ public class SecurityConfig { ...@@ -13,8 +13,7 @@ public class SecurityConfig {
@Bean @Bean
SecurityFilterChain setHttpSecurity(HttpSecurity httpSecurity) throws Exception { SecurityFilterChain setHttpSecurity(HttpSecurity httpSecurity) throws Exception {
httpSecurity.authorizeRequests() httpSecurity.authorizeRequests()
.anyRequest().permitAll() .anyRequest().permitAll();
.and().csrf().disable();
return httpSecurity.build(); return httpSecurity.build();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment