Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Closed Issue: [CORS] Request Method comparison in preflight request scenario should be case sensitive [991]

$
0
0
In CORS Spec:

If method is not a case-sensitive match for any of the values in list of methods do not set any additional headers and terminate this set of steps.

However in CorsEngine.cs:
```
if (policy.AllowAnyMethod ||
policy.Methods.Contains(requestContext.AccessControlRequestMethod, StringComparer.OrdinalIgnoreCase))
{
result.AllowedMethods.Add(requestContext.AccessControlRequestMethod);
}
```
Comments: https://aspnetwebstack.codeplex.com/SourceControl/changeset/87b5360874b2dd2fbba429f7d46d1764338b0511

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>