bug修复

This commit is contained in:
guo 2024-01-17 18:14:40 +08:00
parent d249340727
commit 04d8c9d0f2

View File

@ -298,7 +298,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
.antMatchers("/xmgl/workerAttendance/list").permitAll() .antMatchers("/xmgl/workerAttendance/list").permitAll()
.antMatchers("/xmgl/workerInfo/selectPersonTypeAndEduStatistics").permitAll() .antMatchers("/xmgl/workerInfo/selectPersonTypeAndEduStatistics").permitAll()
.antMatchers(HttpMethod.OPTIONS, "/**").anonymous() .antMatchers(HttpMethod.OPTIONS, "/**").anonymous()
.anyRequest().authenticated() // 剩下所有的验证都需要验证 .anyRequest().authenticated() // 剩下所有的验证都需要验证.
.and() .and()
//设置跨域, 如果不设置, 即使配置了filter, 也不会生效 //设置跨域, 如果不设置, 即使配置了filter, 也不会生效
.cors() .cors()