|
|
|
@ -124,13 +124,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|
|
|
|
// 放行OPTIONS请求
|
|
|
|
|
.antMatchers(HttpMethod.OPTIONS, "/**").permitAll()
|
|
|
|
|
// 放开生成一级分类链接
|
|
|
|
|
// .antMatchers(HttpMethod.POST, "/api/remoteRecord/createRemoteRecord").permitAll()
|
|
|
|
|
// .antMatchers(HttpMethod.GET, "/api/parent/accounts").permitAll()
|
|
|
|
|
// .antMatchers(HttpMethod.GET, "/api/pay/template").permitAll()
|
|
|
|
|
// .antMatchers(HttpMethod.GET, "/api/account/authorize").permitAll()
|
|
|
|
|
// .antMatchers(HttpMethod.GET, "/auth/info").permitAll()
|
|
|
|
|
.antMatchers(HttpMethod.GET, "/api/account/subAccount").permitAll()
|
|
|
|
|
.antMatchers(HttpMethod.POST, "/api/account/pay-notify").permitAll()
|
|
|
|
|
.antMatchers("/api/account/pay-notify").permitAll()
|
|
|
|
|
// 自定义匿名访问所有url放行:允许匿名和带Token访问,细腻化到每个 Request 类型
|
|
|
|
|
// GET
|
|
|
|
|
.antMatchers(HttpMethod.GET, anonymousUrls.get(RequestMethodEnum.GET.getType()).toArray(new String[0])).permitAll()
|
|
|
|
|