提交 b1814150 authored 作者: gongwenjie's avatar gongwenjie

代码修改

上级 e4564b13
...@@ -56,6 +56,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -56,6 +56,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
httpSecurity httpSecurity
.cors().and() .cors().and()
.authorizeRequests() .authorizeRequests()
.antMatchers(HttpMethod.GET,"/pas/department").permitAll()
// .requestMatchers(CorsUtils::isPreFlightRequest).permitAll() // .requestMatchers(CorsUtils::isPreFlightRequest).permitAll()
.antMatchers("/pas/user").hasAnyAuthority("用户管理") .antMatchers("/pas/user").hasAnyAuthority("用户管理")
.antMatchers("/pas/authority").hasAnyAuthority("权限管理") .antMatchers("/pas/authority").hasAnyAuthority("权限管理")
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论