|
|
@ -114,7 +114,7 @@ public class SecurityConfig |
|
|
|
.authorizeHttpRequests((requests) -> { |
|
|
|
permitAllUrl.getUrls().forEach(url -> requests.antMatchers(url).permitAll()); |
|
|
|
// 对于登录login 注册register 验证码captchaImage 允许匿名访问
|
|
|
|
requests.antMatchers("/login", "/register", "/captchaImage", "/web/login", "/web/queryTenantById", "/api/http/getUserInfo", "/api/http/addReportImage", "/api/http/uploadMemberInfo", "/task/task", "/loginSimple").permitAll() |
|
|
|
requests.antMatchers("/login", "/register", "/captchaImage", "/web/login", "/web/queryTenantById", "/api/http/getUserInfo", "/api/http/addReportImage", "/api/http/uploadMemberInfo", "/task/task", "/loginSimple", "/screening/queryDetailNoToken").permitAll() |
|
|
|
// 静态资源,可匿名访问
|
|
|
|
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**", "/static/**").permitAll() |
|
|
|
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() |
|
|
|