help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 29.0.5): 30.0.0 rc2
Operating system and version (eg, Ubuntu 24.04): Ubuntu 22.04
Apache or nginx version (eg, Apache 2.4.25): Nginx 1.18
PHP version (eg, 8.3): 8.1
The issue you are facing:
Using OnlyOffice on a separate server OR the demo server yields the error"
ONLYOFFICE cannot be reached. Please contact admin
Is this the first time you’ve seen this error? (Y/N): Ever since the upgrade to v29
Browser debug shows:
Refused to load the script ‘https://cloud.blah.com/web-apps/apps/api/documents/api.js’ because it violates the following Content Security Policy directive: “script-src-elem ‘strict-dynamic’ ‘nonce-xa4VtxyEIMizfL01VcnzUkDISwPzSkebcBJufe4Ng9U=’ blob: https://oo.blah.com/”. Note that ‘strict-dynamic’ is present, so host-based allowlisting is disabled.
hi @agit8or you are missing the required support template. Please fill this form out and edit into your post. This will give us the technical info and logs needed to help you in case the machine in question in spitting out errors! Since you’ve provided zero technical details it is impossible to help you as-is. Thanks.
Please use the search - lot of issues have been discussed already
If there are specific issues or error please describe what you tried so far and which problems you hit!
Workaround → add to the .htaccess: Header always set Content-Security-Policy "frame-ancestors https://cloud.blah.com"
This works for me, with NextCloud 30.0.0 rc3.
I added it to the .htaccess of the NC server. Tried first using its fqdn, restarted, then tried using the fqdn of the OO server. Neither worked, same outcome.
If you’re truly only using Nginx (i.e. as both your reverse proxy and web server) then .htaccess is ignored since it’s only for Apache).
Nextcloud version (eg, 29.0.5): 30.0.0 rc2
I see you’re running a pre-release version of Nextcloud. Maybe you can give us some context about when this situation started for you? Was this functioning on v29?
Thank you very much @alchiweb
I just upgraded to NC 30.0.0 stable, and got the same OP error. Added to .htaccess the suggested line and then ONLYOFFICE works again. Thank you!
After the Update to the 9.4.0 ONLYOFFICE connector for Nextcloud 30,
my instance is able to work with office documents / sheets as expected.
There was no need to change anything in NGinx conf etc.
I just inserted the parameter for ‘DocumentServerUrl’ => … in my NC config and restartet the whole Server after updating the app before i re-enabled it!!