>PROBLEM
You try to access the site redirects to the default URL and the browser returns:
ERR_TOO_MANY_REDIRECTS
>SOLUTION
Edit your security class configuration that usually extends extends WebSecurityConfigurerAdapter.
Add the URL that fails.
@Configuration
@EnableWebSecurity
public class SpringSecConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity httpSecurity) throws Exception {
httpSecurity.cors().disable();
httpSecurity.headers().frameOptions().disable();
httpSecurity.csrf().disable()
.authorizeRequests()
.antMatchers("/", "THE MISSING URL HERE").permitAll()
//...
}
>ENV
Java
Spring/Spring Boot
No comments:
Post a Comment