Created
March 22, 2019 16:11
-
-
Save naik899/4aa9d4e128048f73d6fa2daaa897b654 to your computer and use it in GitHub Desktop.
Test Controller with origin changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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