| | |
| | | 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");
|
| | |
| | | registry.addMapping("/**")//允许请求路径
|
| | | .allowedOrigins("*")//表示允许所有网址发起跨域请求
|
| | | .allowedMethods("POST", "GET", "PUT", "OPTIONS", "DELETE")//表示允许跨域请求的方法
|
| | | .maxAge(3600)//表示在3600秒内不需要再发送预校验请求
|
| | | .allowCredentials(true);//允许客户端携带验证信息,即允许携带cookie
|
| | | .maxAge(3600);//表示在3600秒内不需要再发送预校验请求
|
| | | }
|
| | | }
|