ASP.NET web api 2 EnableCors method not found

I installed webapi2 and the builds version is installed successfully with the message:

Adding 'Microsoft.AspNet.WebApi.Client 5.2.3' to AT.Web.
Successfully added 'Microsoft.AspNet.WebApi.Client 5.2.3' to AT.Web.
Adding 'Microsoft.AspNet.WebApi.Core 5.2.3' to AT.Web.
Successfully added 'Microsoft.AspNet.WebApi.Core 5.2.3' to AT.Web.
Adding 'Microsoft.AspNet.Cors 5.2.3' to AT.Web.
Successfully added 'Microsoft.AspNet.Cors 5.2.3' to AT.Web.

      

BUT in WebApiConfig.cs in register method you want to enable cors, but there is no "EnableCors" method,

Please suggest

+3


source to share


1 answer


http://www.asp.net/web-api/overview/security/enabling-cross-origin-requests-in-web-api



Esentially. Install-Package Microsoft.AspNet.WebApi.Cors

+3


source







All Articles