OnlyOffice blocked by content security policy (CSP)

The OnlyOffice app is getting blocked by content security policy. I haven’t found anything in the docs or Google on the preferred way to adjust the policy to allow the OnlyOffice app to work.

The closest I got was this comment: Error in Collabora Code: Content Security Policy (“frame-src”) - #3 by muhammadhanif

Is there a way to modify OwnClouds CSP without messing with HTTP headers?

Since it didn’t get covered by the questions in the template, I’m running docker containers for OwnCloud, Redis, MariaDB, and OnlyOffice behind HAProxy.

Oh, and I actually think I had OO working back when I set this instance up a few months ago, but then it fell to the wayside and I just was upgrading things today when I found that OO wasn’t working…

Steps to reproduce

  1. Try to load a document using OnlyOffice.

Expected behaviour

The document should load.

Actual behaviour

Just get an Owncloud frame with no document loaded.

In the console, I see:

Content Security Policy: The page’s settings blocked the loading of a resource at (“frame-src”).

Server configuration

Operating system:
Official Docker Image owncloud/server:10.8
Web server:
Official Docker Image owncloud/server:10.8
Docker: library/mariadb:10
PHP version:
Official Docker Image owncloud/server:10.8
ownCloud version: (see ownCloud admin page)
Official Docker Image owncloud/server:10.8
Updated from an older ownCloud or fresh install:
Updated from 10.7 today.
Where did you install ownCloud from:
Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
paste the results into and puth the link here.

No errors have been found.

The content of config/config.php:

skipping for now

List of activated apps:

skipping for now

Are you using external storage, if yes which one: local/smb/sftp/…
Are you using encryption: yes/no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…

Client configuration

Operating system:


Web server error log

skipping for now

ownCloud log (data/owncloud.log)

skipping for now

Browser log

skipping for now

Figured it out. I needed to set the forwarded headers per the instructions here: Using ONLYOFFICE Docs behind the proxy - ONLYOFFICE

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.