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

Edited Issue: [CORS] Origin comparison should be case-sensitive for simple request. [989]

$
0
0
According to CORS spec (http://www.w3.org/TR/cors/#resource-requests) for simple request origin comparison is case sensitive:

If the value of the Origin header is not a case-sensitive match for any of the values in list of origins, do not set any additional headers and terminate this set of steps.

However the corresponding source code doesn't act like that:

```
else if (policy.Origins.Contains(requestContext.Origin, StringComparer.OrdinalIgnoreCase))
{
result.AllowedOrigin = requestContext.Origin;
}
```

Viewing all articles
Browse latest Browse all 7215

Trending Articles