Administrator
7 days ago 7b2401c03d30dc5c7b3d2af679d52843ffcd39bb
src/main/java/cc/mrbird/febs/common/configure/WebMvcConfigure.java
@@ -33,7 +33,12 @@
        registration.excludePathPatterns("/api/xcxPay/wxpayCallback");
        registration.excludePathPatterns("/api/xcxPay/rechargeCallBack");
        registration.excludePathPatterns("/api/xcxPay/fapiaoCallBack");
        registration.excludePathPatterns("/api/fuPay/callback");
        registration.excludePathPatterns("/api/fuPayReturn/callback");
        registration.excludePathPatterns("/api/fuPayReturn/payment/callback");
        registration.excludePathPatterns("/api/fuPay/notify");
        registration.excludePathPatterns("/api/tokenview/**");
        registration.excludePathPatterns("/api/order/lwPayNotify");
        registration.excludePathPatterns("/api/order/lwPayReturn");
        // 添加Swagger UI相关路径
        registration.excludePathPatterns("/api/swagger-ui.html");
@@ -49,7 +54,6 @@
        registry.addMapping("/**")//允许请求路径
                .allowedOrigins("*")//表示允许所有网址发起跨域请求
                .allowedMethods("POST", "GET", "PUT", "OPTIONS", "DELETE")//表示允许跨域请求的方法
                .maxAge(3600)//表示在3600秒内不需要再发送预校验请求
                .allowCredentials(true);//允许客户端携带验证信息,即允许携带cookie
                .maxAge(3600);//表示在3600秒内不需要再发送预校验请求
    }
}