Nextcloud CSP-Fehler beheben: Refused to send form data to /login/v2/grant
English
Deutsch
Problem:
Beim Versuch, sich mit dem Nextcloud-Client zu verbinden, während des Flow v2-Autorisierungsschritts, bei dem Sie eine Seite im Browser öffnen, um den Client zu autorisieren, sehen Sie eine Fehlermeldung in der JS-Konsole wie
nextcloud-form-action-error.txt
Refused to send form data to 'http://nextcloud.mydomain.com/login/v2/grant' because it violates the following Content Security Policy directive: "form-action 'self'".Lösung
Fügen Sie
config-php-snippet.php
'overwriteprotocol' => 'https',nach dieser Zeile hinzu:
config-version-line.php
'version' => '18.0.0.10',in Ihrer nextcloud/config/config.php hinzu.
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow