【发布时间】:2015-07-21 14:43:27
【问题描述】:
我在 CouchDB 中启用了 CORS:
我在 Windows 8.1 上运行该应用,并使用 hapi.js 提供服务。
一段时间后在 Chrome 中查看时,控制台中会出现此错误消息:
Uncaught (in promise) CustomPouchError {status: 500, name: "unknown_error", message: "Database encountered an unknown error", error: true, toString: function}
Firefox 中止访问 CouchDB,例如: http://127.0.0.1:5984/user_z_at_z_p_ch/?_nonce=1431328831527, 然后报告跨源请求被阻止。
我尝试运行 add-cors-to-couchdb 但我收到此错误:
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)
【问题讨论】: