更新时间:2023-12-03 10:12:10
我终于找到了解决方案:
I finally found the solution:
编辑CouchDB配置local.ini
并更改作为响应发送的HTTP标头:
Edit the CouchDB config local.ini
and change the HTTP Header sent in response:
WWW-Authenticate = Other realm="app"
最初是
WWW-Authenticate = Basic realm="administrator"
或者如果有评论,那就是发送出去的东西. WWW-Authenticate = Basic
显然使浏览器通过显示其模式来处理(失败的)身份验证.将Basic
更改为其他任何内容都会使浏览器忽略它,您可以自己处理登录.
or if it is commented, that's what is sent out anyway. The WWW-Authenticate = Basic
apparently causes the browser to handle (failed) authentication by showing its modal. Changing Basic
to anything else makes the browser ignore it and you can deal with the login yourself.