Spring security logout

Asked on January 25, 2018
Hello,
I using spring security function for logout, the function look like below
public void configure(HttpSecurity http) throws Exception {
http
.logout().logoutSuccessUrl("/").and()
.authorizeRequests().antMatchers("/index.html", "/app.html", "/")
.permitAll().anyRequest().authenticated().and()
.csrf()
.csrfTokenRepository(CookieCsrfTokenRepository.withHttpOnlyFalse());
}
but the above code giving error code 403 or 404.
Kindly anyone help me out in this.
Thanks
Anita
I using spring security function for logout, the function look like below
public void configure(HttpSecurity http) throws Exception {
http
.logout().logoutSuccessUrl("/").and()
.authorizeRequests().antMatchers("/index.html", "/app.html", "/")
.permitAll().anyRequest().authenticated().and()
.csrf()
.csrfTokenRepository(CookieCsrfTokenRepository.withHttpOnlyFalse());
}
but the above code giving error code 403 or 404.
Kindly anyone help me out in this.
Thanks
Anita

Replied on January 25, 2018
403 is access denied error. The resource you are requesting is unauthorized for logged-in user.
Find the URL that may help you to handle it.