4

How do I enable the CORS option in asp.net WebApi? I installed the package Microsoft.AspNet.WebApi.Cors from nuget for CORS support. However, I am getting an error stating that IAppBuilder does not contain definition for app.useCors?

SouthShoreAK
  • 4,176
  • 2
  • 26
  • 48
Ali Nafees
  • 185
  • 1
  • 1
  • 7

1 Answers1

9

Make sure you have installed the Microsoft.AspNet.WebApi.OwinSelfHost and Microsoft.Owin.Cors NuGet packages.

awh112
  • 1,466
  • 4
  • 22
  • 34