How to include System.Web.Http.Cors reference dll in .Net Web API How to include System.Web.Http.Cors reference dll in .Net Web API asp.net asp.net

How to include System.Web.Http.Cors reference dll in .Net Web API


Use Nuget, Microsoft use it for many great things as well.

Go to: TOOLS > Library Package Manager > Package Manager Console, and type in:

Install-Package Microsoft.AspNet.WebApi.Cors

Reference to the Nuget package here.

Here's another question on this topic


Answer from @Marcus is now outdated, System.Web.Http.Cors is no longer comes with Microsoft.AspNet.WebApi.Cors follow this link to install System.Web.Http.Cors Microsoft.AspNet.Cors