[cors] Case-sensitive matching of origin URLs?

Hi,

I'm writing a generic Java servlet filter to implement the current
CORS draft. I'm confused about the correct way to check if a reported
Origin is allowed by the resource's allow list.

The Origin spec, which the CORS draft refers to, implies that 2
origins are equal if they match, regardless of their case (upper or
lower):

http://tools.ietf.org/html/draft-abarth-origin-07



The CORS draft on the other hand requires case-sensitive matching of origins:

http://www.w3.org/TR/access-control/#resource-requests


Please, advise.

Vladimir
-- 
Vladimir Dzhuvinov :: software.dzhuvinov.com

Received on Friday, 24 September 2010 07:17:14 UTC