Skip to content

Commit

Permalink
AAE-19764 csrf disabled removed (#4593)
Browse files Browse the repository at this point in the history
* AAE-19764 csrf disabled removed
  • Loading branch information
wojciech-piotrowiak committed Mar 6, 2024
1 parent 911d9d7 commit 37e5af9
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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.configurers.AbstractHttpConfigurer;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.provisioning.InMemoryUserDetailsManager;
Expand Down Expand Up @@ -68,7 +67,6 @@ public UserDetailsService userDetailsService() {
@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
return http
.csrf(AbstractHttpConfigurer::disable)
.authorizeHttpRequests(auth -> auth.anyRequest().authenticated())
.httpBasic(withDefaults())
.build();
Expand Down

0 comments on commit 37e5af9

Please sign in to comment.