Skip to content Skip to sidebar Skip to footer

Difficulty Authenticating To Couchdb

I have a couch server running and I am attempting to access it from a web application served from port 80. I am having difficulty authenticating. The code I am using to test is: va

Solution 1:

Your requests fails because of Same-Origin Policy since you made AJAX request to url with different port (not 80). You need to setup CORS correctly to let your requests succeeded.

P.S. And why not to use jquery.couch.js as client library instead of own $.ajax calls? It handles a lot of useful bits and provides nicer API.

Post a Comment for "Difficulty Authenticating To Couchdb"