Skip to content

Instantly share code, notes, and snippets.

@naik899
Created March 22, 2019 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naik899/4aa9d4e128048f73d6fa2daaa897b654 to your computer and use it in GitHub Desktop.
Save naik899/4aa9d4e128048f73d6fa2daaa897b654 to your computer and use it in GitHub Desktop.
Test Controller with origin changes
using System.Net.Http;
using System.Web.Http;
using System.Web.Http.Cors;
[EnableCors(origins: "http://ravindranaik.com", headers: "*", methods: "*")]
public class TestController : ApiController
{
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment