Administrator
12 hours ago ba36539b54ebc22824a61c79242ee8d7b5fa2868
feat(security): 开启websocket功能并配置相关安全规则

- 在测试环境配置中启用websocket
- 添加websocket端点的安全配置规则
- 允许websocket路径/ws/v5/**的匿名访问
2 files modified
3 ■■■■ changed files
src/main/java/com/xcong/excoin/configurations/security/WebSecurityConfig.java 1 ●●●● patch | view | raw | blame | history
src/main/resources/application-test.yml 2 ●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/configurations/security/WebSecurityConfig.java
@@ -57,6 +57,7 @@
                .antMatchers("/api/orderCoin/findCollect").permitAll()
                .antMatchers("/api/documentary/getFollowTraderProfitInfo").permitAll()
                .antMatchers("/api/helpCenter/**").permitAll()
                .antMatchers("/ws/v5/**").permitAll()
                .anyRequest().authenticated()
                .and().apply(securityConfiguereAdapter());
    }
src/main/resources/application-test.yml
@@ -101,7 +101,7 @@
  loop-job: false
  rabbit-consumer: false
  block-job: false
  websocket: false
  websocket: true
aliyun:
  oss: