Remote Database not working

161 views
Skip to first unread message

Holger Trampe

unread,
Dec 23, 2016, 6:03:13 PM12/23/16
to PouchDB
Hi!
I have problems to bind a remote-db to my application. I installed a running couchdb-server and created a database. When i try to use my smart todo-app directly on the server the remote-database works fine with localhost:PORT/name_database. But if i try to connect from another client i get this error:

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 404.

If a add the port to the url i get a timeout-error:

Error: ETIMEDOUT
    at XMLHttpRequest.n.onreadystatechange (pouchdb.min.js:9)
    at s (pouchdb.min.js:9)

Does someone got an idea? THX!

Bill Stephenson

unread,
Dec 23, 2016, 8:16:37 PM12/23/16
to PouchDB
Hi Holger,

You need to configure your "CORS" options in the remote couchdb to allow allow this. Here are a couple links to help with this:


Reply all
Reply to author
Forward
0 new messages