问题描述:
添加引用:右键项目→添加nuget包
在:App_Start/WebApiConfig.Register中添加如下一句话
//跨域配置 config.EnableCors(new EnableCorsAttribute("*", "*", "*"));