Github user iilyak commented on a diff in the pull request:
https://github.com/apache/couchdb-chttpd/pull/101#discussion_r53026146
--- Diff: src/chttpd_cors.erl ---
@@ -360,7 +399,7 @@ get_origin(Req) ->
undefined ->
undefined;
Origin ->
- ?l2b(to_lower(Origin))
+ ?l2b(Origin)
--- End diff --
Hmm not sure then. It contradicts [6.1 point
2](https://www.w3.org/TR/cors/#origin-request-header) where spec says:
> 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.
I'll do some research on it.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---