GitHub user iilyak opened a pull request:
https://github.com/apache/couchdb-chttpd/pull/100
Improve cors support
This PR makes it possible to configure CORS to be able to use custom
headers.
It mostly fixes already existing code. The only new addition is
`exposed_headers` setting.
The supported configuration is via `default.ini`:
```ini
[cors]
headers = "content-type, accept-ranges, ..."
methods = "COPY, DELETE, ...."
exposed_headers = "extra, accept-ranges, etag, server, ..."
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloudant/couchdb-chttpd improve_cors_support
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb-chttpd/pull/100.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 #100
----
commit 9733d21ac223fbe92fc94405ef9d33c919aaa8ad
Author: ILYA Khlopotov <[email protected]>
Date: 2016-01-25T21:04:06Z
Use correct setting for AllowHeaders
commit 63af9339f2a65125e2e14498e3b985b915115004
Author: ILYA Khlopotov <[email protected]>
Date: 2016-01-25T21:05:47Z
Make use of <<allow_headers>> option
commit 5a1f6602829af61a336789e30debfe7bf0209c04
Author: ILYA Khlopotov <[email protected]>
Date: 2016-01-25T21:06:39Z
Introduce cors/exposed_headers config setting
commit f59f4a9598924489dc7b0cf796aefc2bdc32c8f7
Author: ILYA Khlopotov <[email protected]>
Date: 2016-01-25T21:07:19Z
Adding more tests for CORS
----
---
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.
---