在webapi项目下的App_Start文件夹下的WebApiConfig.cs类文件里,添加下列代码: config.EnableCors(new EnableCorsAttribute("*", "*", "*")); 即可完美解决!