修复验证码无法加载的问题
This commit is contained in:
parent
6005c4839b
commit
5b73366ffa
@ -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()
|
||||
// ②:每个项目的自定义规则
|
||||
|
@ -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 # 路由的编号
|
||||
|
Loading…
Reference in New Issue
Block a user