Prevent Authentication popup 401 with CouchDB PouchDB
For a JavaScript web app (AngularJS based) I am using PouchDB replicating a CouchDB database on my server. Authentication in PouchDB works nicely with pouchdb-authentication . I want to manage this through a html/js login screen. However, if the user enters wrong credentials, I receive a 401 Unauthorized from the CouchDB server that causes a browser popup asking for credentials. How can I prevent this ugly Authentication popup and just handle everything from my javascript?! I finally found the solution: Edit the CouchDB config local.ini and change the HTTP Header sent in response: WWW