on-internet
← Community

spring boot + security + jquery ajax

Stack Overflow ·

Hi,I build a project with spring boot & spring security. Now, I want to provider the login restfull service for Jquery.ajax({...}); And I want to: process the login request from HTML page (like the <form> submit). automatic to check session timeout when HTML page request, redirect timeout to login page. process the login request from Ajax. automatic to check the login state when Ajax request. I coding like this SecurityConfig extends from WebSecurityConfigurerAdapter @Override protected void configure(HttpSecurity http) throws Exception { http.csrf().disable(); http.exceptionHandling().authent

Comments

Sign in or sign up to comment and upvote.

No comments yet.