Skip to content

Instantly share code, notes, and snippets.

@azkurban
azkurban / Gobal.asax.cs
Created December 29, 2016 22:55 — forked from shammelburg/Gobal.asax.cs
Angular2 + Windows Authentication
protected void Application_BeginRequest()
{
if (Request.Headers.AllKeys.Contains("Origin") && Request.HttpMethod == "OPTIONS")
{
Response.Flush();
}
}