Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.web.SecurityFilterChain;
import org.springframework.security.web.util.matcher.AntPathRequestMatcher;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

Expand Down Expand Up @@ -61,7 +60,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception
// Java EE form authentication, not by Spring Security, so no CSRF token is
// available in the form POST. All other endpoints retain CSRF protection.
.csrf(csrf -> csrf
.ignoringRequestMatchers(new AntPathRequestMatcher("/j_security_check"))
.ignoringRequestMatchers("/j_security_check")
)
.jee(jee -> jee.mappableRoles("USER", "ADMIN"));

Expand Down
Loading