修复非鉴权接口的跨域失败问题
parent
3a1fc63d7a
commit
0a245c4cfe
|
@ -77,7 +77,6 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
|
||||||
matchers.add("/api/device/query/snap/**");
|
matchers.add("/api/device/query/snap/**");
|
||||||
matchers.add("/record_proxy/*/**");
|
matchers.add("/record_proxy/*/**");
|
||||||
matchers.add("/api/emit");
|
matchers.add("/api/emit");
|
||||||
matchers.addAll(userSetting.getInterfaceAuthenticationExcludes());
|
|
||||||
// 可以直接访问的静态数据
|
// 可以直接访问的静态数据
|
||||||
web.ignoring().antMatchers(matchers.toArray(new String[0]));
|
web.ignoring().antMatchers(matchers.toArray(new String[0]));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue