Administrator
7 days ago 10a1a391561ca1e85599ea272fd209e8bd57584d
src/main/java/cc/mrbird/febs/common/configure/WebMvcConfigure.java
@@ -36,6 +36,9 @@
        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");
@@ -51,7 +54,6 @@
        registry.addMapping("/**")//允许请求路径
                .allowedOrigins("*")//表示允许所有网址发起跨域请求
                .allowedMethods("POST", "GET", "PUT", "OPTIONS", "DELETE")//表示允许跨域请求的方法
                .maxAge(3600)//表示在3600秒内不需要再发送预校验请求
                .allowCredentials(true);//允许客户端携带验证信息,即允许携带cookie
                .maxAge(3600);//表示在3600秒内不需要再发送预校验请求
    }
}