Prechádzať zdrojové kódy

【CHG】放开部分接口过滤

zhaomn 2 rokov pred
rodič
commit
a330e924f6

+ 1 - 1
railway-admin/src/main/java/com/railway/web/controller/common/CaptchaController.java

@@ -106,7 +106,7 @@ public class CaptchaController extends BaseController {
    */
   @ApiOperation(value = "验证码生成", notes = "验证码生成", response = ModelAndView.class)
   @ApiImplicitParam(name = "type", value = "math 或 char", paramType = "query", dataType = "string")
-  @GetMapping("/yzm")
+  @GetMapping("/yZm")
   public AjaxResult getYzm(String type) {
     AjaxResult ajax = AjaxResult.success();
     boolean captchaOnOff = configService.selectCaptchaOnOff();

+ 1 - 1
railway-framework/src/main/java/com/railway/framework/config/SecurityConfig.java

@@ -95,7 +95,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
         // 过滤请求
         .authorizeRequests()
         // 对于登录login 注册register 验证码captchaImage 允许匿名访问
-        .antMatchers("/login", "/register", "/captchaImage").anonymous()
+        .antMatchers("/login", "/register", "/captchaImage", "/yZm").anonymous()
         .antMatchers(
             HttpMethod.GET,
             "/",