nextcloud / richdocuments

đź“‘ Collabora Online for Nextcloud
https://nextcloud.com/collaboraonline
354 stars 116 forks source link

Nextcloud Office: Cross-Origin-Opener-Policy breaks other nextcloud apps #4103

Open droogi opened 3 weeks ago

droogi commented 3 weeks ago

Describe the bug enabling Nextcloud Office breaks other nextcloud apps

To Reproduce Steps to reproduce the behavior:

  1. Enable Nextcloud Office 8.5.1
  2. Click on maps or memories
  3. maps: tiles are not loaded, memories: preview is not displayed, pictures are not loaded

Expected behavior Other nextcloud apps should work

Screenshots

Image

Client details:

Server details

Operating system: dietpi 9.7

Web server: nginx 1.22.1

Database: MariaDB

PHP version: PHP 8.2.24

Nextcloud version: 29 & 30

Version of the richdocuments app: Nextcloud Office 8.5.1

Browser log

mistakes:

    The source list for the Content Security Policy directive 'connect-src' contains an invalid source: '://'. It will be ignored.

    c.tile.openstreetmap.org/11/1086/692.png:1

        GET https://c.tile.openstreetmap.org/11/1086/692.png net::ERR_BLOCKED_BY_RESPONSE.NotSameOriginAfterDefaultedToSameOriginByCoep 200 (OK)

Hit F12 to open developer tools, switch to Network tab, reload page with F5. At the top of the request list, select maps/, then select "Headers" tab in the newly opened frame.

Cross-Origin-Embedder-Policy: require-corp Cross-Origin-Opener Policy: same-origin

Discovery and possible root cause

discovery possible root cause with explanation by MichaIng same? failure was mentioned [here] (https://github.com/nextcloud/richdocuments/pull/3260)

droogi commented 3 days ago

@juliusknorr could you please have a look at this issue?