Skip to content

Instantly share code, notes, and snippets.

@beyond-code-github
Created March 14, 2013 15:10
Show Gist options
  • Save beyond-code-github/5162126 to your computer and use it in GitHub Desktop.
Save beyond-code-github/5162126 to your computer and use it in GitHub Desktop.
protected void Application_BeginRequest(object sender, EventArgs e)
{
if (this.Context.Request.Path.Contains("signalr/"))
{
this.Context.Response.AddHeader("Access-Control-Allow-Headers", "accept,origin,authorization,content-type");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment