This commit is contained in:
2025-11-05 23:03:54 +08:00
parent 97f97f35b1
commit 6958db464f
2 changed files with 4 additions and 0 deletions

View File

@@ -114,6 +114,8 @@ public class SecurityConfig
requests.antMatchers("/login", "/register", "/captchaImage").permitAll()
// 公开接口,允许匿名访问
.antMatchers("/public/**").permitAll()
// 腾讯文档OAuth回调接口允许匿名访问
.antMatchers("/jarvis/tendoc/oauth/callback").permitAll()
// 静态资源,可匿名访问
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()