I am using eclipse to develop Spring boot web application cannot access servlet through Yahoo YUI js. No matter what I do with configure(HttpSecurity http) in SecurityConfig or taken it out, still can not access the servlet, it says 403 forbidden: http.authorizeRequests().antMatchers("/", "/register", "/login").permitAll().antMatchers("/welcome") .authenticated().antMatchers("/admin").hasAuthority("Admin").antMatchers("/mgr").hasAuthority("Manager")
.and().formLogin().defaultSuccessUrl("/userIndex", true)
.and().logout().logoutRequestMatcher(new AntPathRequestMatcher("/logout"))
.and().exceptionHandling().accessDeniedPage("/accessDenied");
http.csrf().and().cors().disable();
Please help! Newbie