Skip to content

Instantly share code, notes, and snippets.

@marcialsoto
Created May 31, 2019 17:48
Show Gist options
  • Select an option

  • Save marcialsoto/8690e55cfd6666d837f2f56e68aca8d8 to your computer and use it in GitHub Desktop.

Select an option

Save marcialsoto/8690e55cfd6666d837f2f56e68aca8d8 to your computer and use it in GitHub Desktop.
Enable CORS in .NET
Install-Package Microsoft.AspNet.WebApi.Cors
nableCorsAttribute cors = new EnableCorsAttribute("*", "*", "*");
config.EnableCors(cors);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment