CSP error when opening documents

Đang mở
#170 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

@timar đang làm issue này rồi.

Từ ngày 1/11/2026.

  • #363 của @timar — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
php
Lĩnh vực
backend

Hướng nghiên cứu

Start by reproducing the reported CSP error with Nextcloud 23.0.1 and richdocumentscode 5.0.1, using the issue’s browser-console message and linked Docker Compose setup as references. Trace where the built-in server’s proxy.php?status URL is formed; done means opening a document no longer requests that resource over HTTP and the document loads.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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”).
Ngôn ngữ chính
PHP
Star
156
Fork
37
Merge trung bình
23 giờ 51 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CollaboraOnline/richdocumentscode

Tất cả issue của CollaboraOnline/richdocumentscode

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.