abp在report.WebApi里的reportWebApiModule.cs配置
if (System.Configuration.ConfigurationManager.AppSettings["debug"] == "1") { var cors = new System.Web.Http.Cors.EnableCorsAttribute("*", "*", "*"); GlobalConfiguration.Configuration.EnableCors(cors); //调用SwaggerUi生成交互式的文档 ConfigureSwaggerUi(); }