I am using security with SpringBoot, but permitall is not working.
The file path is templates/member/login.html
@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http
.authorizeHttpRequests((auth) -> auth
.requestMatchers("/", "/member/login", "/member/signup").permitAll()
.anyRequest().authenticated()
);
http
.formLogin((auth) -> auth.loginPage("/member/login")
.loginProcessingUrl("/")
.permitAll());
http
.csrf((auth) -> auth.disable());
return http.build();
}
p.s. I’m a talking potato 🙁
New contributor
Shin-Hyeoncheol is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.