richdocumentscode icon indicating copy to clipboard operation
richdocumentscode copied to clipboard

CSP error when opening documents

Open greenbourne277 opened this issue 3 years ago • 0 comments

Describe the bug When opening a document the content is not loaded. The webconsole shows a CSP error. This error occured with the update to Nextcloud v23 and richdocumentscode v.5.0.1

Content Security Policy: The page’s settings blocked the loading of a resource at http://mydomain.com/custom_apps/richdocumentscode/proxy.php?status (“connect-src”).

I think it should use https instead of http

To Reproduce Steps to reproduce the behavior:

  1. Install Collabora Online - Built-in CODE Server
  2. Use the Built-in server
  3. Select a document
  4. See error

Expected behavior I expect to be able to edit documents

Screenshots 2022-02-07_21-23-52

Client details:

  • OS: Linux
  • Browser: Firefox, Chromium
  • Version , 96.0.3 and 98.0.4758.80 Arch Linux
  • Device: desktop

Server details

Operating system:

Web server: Ubuntu 20.04, but everything runs in docker containers

Database: Maria DB

Nextcloud version: 23.0.1

Version of the richdocuments app 5.0.1

Version of Collabora Online 21.11.103

My docker-compose setup https://gist.github.com/greenbourne277/99190585dc3afeff53cbbc5d823767dd

Nextcloud log (data/nextcloud.log)

No errors in the logs.

Browser log

Content Security Policy: The page’s settings blocked the loading of a resource at http://my-cloud.de/custom_apps/richdocumentscode/proxy.php?status (“connect-src”).

greenbourne277 avatar Feb 11 '22 13:02 greenbourne277