CSP error when opening documents

オープン
#170 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@timar がすでに取り組んでいます。

2026年11月1日 から。

  • #363 @timar による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php
領域
backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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”).
主要言語
PHP
スター
156
フォーク
37
平均マージ
23時間 51分
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CollaboraOnline/richdocumentscode のほかの issue

CollaboraOnline/richdocumentscode の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。