Permalink
Browse files

Merge pull request #94 from Gutek/patch-2

Adding Exposed headers for CORS
  • Loading branch information...
2 parents b60acad + d12e0cc commit 7466e47d28da48dcf1ddb6d2516cdb8f9c41ad73 James Nugent committed Feb 14, 2014
@@ -162,6 +162,7 @@ private void SetRequiredHeaders()
HttpEntity.Response.AddHeader("Access-Control-Allow-Methods", string.Join(", ", _allowedMethods));
HttpEntity.Response.AddHeader("Access-Control-Allow-Headers", "Content-Type, X-Requested-With, X-PINGOTHER, Authorization");
HttpEntity.Response.AddHeader("Access-Control-Allow-Origin", "*");
+ HttpEntity.Response.AddHeader("Access-Control-Expose-Headers", "Location");
if (HttpEntity.Response.StatusCode == HttpStatusCode.Unauthorized)
HttpEntity.Response.AddHeader("WWW-Authenticate", "Basic realm=\"ES\"");
}

0 comments on commit 7466e47

Please sign in to comment.