Skip to content

Instantly share code, notes, and snippets.

@shawnmclean
Created April 29, 2012 18:59
Show Gist options
  • Save shawnmclean/2552696 to your computer and use it in GitHub Desktop.
Save shawnmclean/2552696 to your computer and use it in GitHub Desktop.
controller utilizing HttpHeader
[HttpHeader("Access-Control-Allow-Origin", "*")]
public class UserController : ApiController
{
public IEnumerable<string> Get()
{
return new List<string> { "User1", "User2" };
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment