Browse Source

feat: 给websocket的请求放行

ylc
weihongyang 2 years ago
parent
commit
e277f2a32e
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      ym-admin/src/main/java/com/cnbm/admin/config/SecurityConfig.java

+ 1
- 0
ym-admin/src/main/java/com/cnbm/admin/config/SecurityConfig.java View File

@@ -71,6 +71,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
"/swagger-resources/**", "/swagger-resources/**",
"/swagger-ui/**", "/swagger-ui/**",
"/webjars/**", "/webjars/**",
"/websocket/**",
"/captcha").anonymous() "/captcha").anonymous()
// .antMatchers("/testCors").hasAuthority("system:dept:list222") // .antMatchers("/testCors").hasAuthority("system:dept:list222")
// 除上面外的所有请求全部需要鉴权认证 // 除上面外的所有请求全部需要鉴权认证


Loading…
Cancel
Save