Commit 0a245c4cfe9298dc1235d8a1f9fa3b68095b210b

Authored by 648540858
1 parent 3a1fc63d

修复非鉴权接口的跨域失败问题

src/main/java/com/genersoft/iot/vmp/conf/security/WebSecurityConfig.java
@@ -77,7 +77,6 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { @@ -77,7 +77,6 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
77 matchers.add("/api/device/query/snap/**"); 77 matchers.add("/api/device/query/snap/**");
78 matchers.add("/record_proxy/*/**"); 78 matchers.add("/record_proxy/*/**");
79 matchers.add("/api/emit"); 79 matchers.add("/api/emit");
80 - matchers.addAll(userSetting.getInterfaceAuthenticationExcludes());  
81 // 可以直接访问的静态数据 80 // 可以直接访问的静态数据
82 web.ignoring().antMatchers(matchers.toArray(new String[0])); 81 web.ignoring().antMatchers(matchers.toArray(new String[0]));
83 } 82 }