GitHub user iilyak opened a pull request:
https://github.com/apache/couchdb-chttpd/pull/101
2945 remove couch http cors
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloudant/couchdb-chttpd
2945-remove-couch_http_cors
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb-chttpd/pull/101.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #101
----
commit 2c9a88958801d5213efe20f0fb40f50b74c8b1fb
Author: ILYA Khlopotov <[email protected]>
Date: 2016-02-09T21:22:05Z
Introduce vhosts configuration into CORS
In order to remove code duplication we move vhosts support
from couch_http_cors into chttpd_cors. We also dispatch
chttpd:send_response to couch_http which does call chttpd_cors:headers.
In order to avoid double injection of CORS headers we check for existance of
"Access-Control-Allow-Origin" in response headers.
COUCHDB-2945
commit 3e0255700715e6ce6a9bf5c099f2472c481f2cb7
Author: ILYA Khlopotov <[email protected]>
Date: 2016-02-09T22:41:22Z
Treat value passed in Origin as case sensitive
According to CORS spec here https://www.w3.org/TR/cors
The value of the Origin header is not a case-sensitive
COUCHDB-2945
----
---
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.
---