nextcloud 设置 https 后登陆报错

nextcloud 设置 https 后登陆链接报错:Refused to send form data to 'http://***/' because it violates the following Content Security Policy directive: "form-action 'self'".

解决方案

在文件 nextcloud/html/config/config.php 添加以下代码

'overwriteprotocol' => 'https',