调整了security安全策略

This commit is contained in:
ajaxfan
2021-01-29 10:11:14 +08:00
parent e8be1e1902
commit 0f920bee4b

View File

@ -31,6 +31,7 @@ public class BrowserSecurityConfig extends WebSecurityConfigurerAdapter {
*/ */
@Override @Override
protected void configure(HttpSecurity http) throws Exception { protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().antMatchers("/**").permitAll().and().csrf().disable();
http.addFilterBefore(authenticationTokenFilterBean(), UsernamePasswordAuthenticationFilter.class); http.addFilterBefore(authenticationTokenFilterBean(), UsernamePasswordAuthenticationFilter.class);
} }