I have CORS enabled in CouchDB:


I run the app on Windows 8.1, serving it with hapi.js.
When viewing it in Chrome after a while this error message appears in the console:
Uncaught (in promise) CustomPouchError {status: 500, name: "unknown_error", message: "Database encountered an unknown error", error: true, toString: function}
Firefox aborts accessing CouchDB, for instance: http://127.0.0.1:5984/user_z_at_z_p_ch/?_nonce=1431328831527, then reports that a cross origin request was blocked.
I have tried to run add-cors-to-couchdb but I get this error:
PS C:\Users\alex> add-cors-to-couchdb
events.js:85
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at exports._errnoException (util.js:746:11)
at TCP.onread (net.js:559:26)