webapi 跨域 (MVC-Web API: 405 method not allowed问题 ) – 月下之神 – 博客园
来源: webapi 跨域 (MVC-Web API: 405 method not allowed问题 ) - 月下之神 - 博客园 使用webapi cors 1.安装包:Install-Package Microsoft.AspNet.WebApi.Cors –IncludePrerelease 2.在webapiconfig.cs中增加如下代码。 1 2 var cors = new En