GitHub user robertkowalski opened a pull request:
https://github.com/apache/couchdb-fauxton/pull/576
fix cors validation for hosts with no tld
- allow ips and things like: http://localhost:3000
- normalize urls in case a path is given by removing the path
note:
in general the validation should be done in the backend as single
source of truth so that api users and fauxton users get the same
results and also the interfaces are consistent.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/robertkowalski/couchdb-fauxton cors-validation
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb-fauxton/pull/576.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 #576
----
commit f91be90aff912d38fd9cd45e6ef1a535f8b0da55
Author: Robert Kowalski <[email protected]>
Date: 2015-11-16T13:40:30Z
fix cors validation for hosts with no tld
- allow ips and things like: http://localhost:3000
- normalize urls in case a path is given by removing the path
note:
in general the validation should be done in the backend as single
source of truth so that api users and fauxton users get the same
results and also the interfaces are consistent.
----
---
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.
---