修复验证码无法加载的问题

This commit is contained in:
liuzhixiong 2022-10-27 10:34:19 +08:00
parent 6005c4839b
commit 5b73366ffa
2 changed files with 2 additions and 1 deletions

View File

@ -127,6 +127,7 @@ public class YudaoWebSecurityConfigurerAdapter extends WebSecurityConfigurerAdap
.antMatchers(HttpMethod.DELETE, permitAllUrls.get(HttpMethod.DELETE).toArray(new String[0])).permitAll()
// 基于 yudao.security.permit-all-urls 无需认证
.antMatchers(securityProperties.getPermitAllUrls().toArray(new String[0])).permitAll()
.antMatchers("/captcha/get", "/captcha/check").permitAll()
// 设置 App API 无需认证
.antMatchers(buildAppApi("/**")).permitAll()
// 每个项目的自定义规则

View File

@ -16,7 +16,7 @@ spring:
- id: system-admin-api # 路由的编号
uri: grayLb://system-server
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
- Path=/admin-api/system/**
- Path=/admin-api/system/**,/captcha/**
filters:
- RewritePath=/admin-api/system/v2/api-docs, /v2/api-docs
- id: system-app-api # 路由的编号