java - How to configure Spring Security for a single page application? -
i faced problem configuration spring security single page application. so, defualt config looks like @configuration @enablewebsecurity public class securityconfiguration extends websecurityconfigureradapter { @autowired @qualifier("customuserdetailsservice") userdetailsservice userdetailsservice; @autowired public void configureglobalsecurity(authenticationmanagerbuilder auth) throws exception { auth.userdetailsservice(userdetailsservice); } @override protected void configure(httpsecurity http) throws exception { http.authorizerequests() .antmatchers("/", "/list").permitall() .antmatchers("/admin/**").access("hasrole('admin')") .and().formlogin().loginpage("/login").permitall() .usernameparameter("ssoid").passwordparameter("password") .and().csrf() ...