标签:
1、NuGet:Install-Package Microsoft.AspNet.WebApi.Cors
2、Application_Start中增加(包含在#if DEBUG中):GlobalConfiguration.Configuration.EnableCors();
3、Controller或Action上增加(包含在#if DEBUG中):[System.Web.Http.Cors.EnableCors(EXE.Core.Const.CorsOrigins, "*", "*")]
标签:
原文地址:http://www.cnblogs.com/Ivan-NET/p/4600492.html