摘要:
[ApiAuthorize]BaseController:ApiControllerWebApiConfigregister() //config.SuppressDefaultHostAuthentication(); //config.Filters.Add(new Hos... 阅读全文
posted @ 2015-05-31 22:00
fannet
阅读(237)
评论(0)
推荐(0)
摘要:
使用方法:1. 到nuget上装一个包:http://www.nuget.org/packages/Microsoft.AspNet.WebApi.Cors/2. 在WebApiConfig.Register方法中加入代码:config.EnableCors();3. 在Controller上加上A... 阅读全文
posted @ 2015-05-31 21:32
fannet
阅读(279)
评论(0)
推荐(0)

浙公网安备 33010602011771号