Can't grant access to nextcloud, hangs indefinitely
I finally found out why I wasn't able to connect to my nextcloud instance with my pinephone
I got through the process of logging into my server, but the Grant Access
button did just hang cycling indefinitely. With journalctl -f
I got an error message (not exactly the following, but similar to it)
Refused to send form data to 'http://your.server.com' because it violates the following Content Security Policy directive: form-action ‘self’
Notice the http
in the URL. I have nextcloud running with SSL and also provided the URL with https
. But because of my setup (docker-compose with nextcloud app and reverse proxy) somehow the returned site (or link) was one with plain http
.
Found the answer with the following website:
essentially I needed to add 'overwriteprotocol' => 'https',
to nextclouds config.php