Github user iilyak commented on the pull request:
https://github.com/apache/couchdb-chttpd/pull/101#issuecomment-191245049
@chewbranca: We would want to include CORS headers by default and do not
include them only for one specific case when we do a call from `chttpd_cors`
itself. If we introduce `send_cors_response` we would need to update all of the
dependencies to use it. Also we would need to communicate to all developers to
stop using `send_response` in new work and use `send_cors_response` instead.
I'm planing to refactor all `send_response*` functions right after this PR
is merged in order to implement `before_response` EPI hook. The initial version
of which is [here](https://github.com/apache/couchdb-chttpd/pull/99/files).
---
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.
---