First, you need to get acquainted with curl, after which you will begin to test your couchdb through the command line. Trying on the same computer on which you installed couchdb.
$ curl localhost:5984
After that, try accessing from another computer using curl:
$ curl http://<your_couchdb_server_name_or_ip>:5984/
If you cannot, you need to check if there is a firewall on your server that blocks external requests to your server on port 5984.
Now, in order to access your couchdb from an ajax request, you must configure the local.ini file:
[httpd] enable_cors:true; [cors] credentials:true; mehods:PUT,GET,POST,DELETE,OPTIONS; origins:*;
Reboot the couch and try again, this should solve your problem.
source share