Federated share error due to content security policy

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 12.0.2): 17.0.3 - 17.0.3.1
Operating system and version (eg, Ubuntu 17.04):

Linux 3.10.0-957.27.2.el7.x86_64 #1 SMP Mon Jul 29 17:46:05 UTC 2019 x86_64

Apache or nginx version (eg, Apache 2.4.25):

Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.21 (apache2handler)

PHP version (eg, 7.1): Version: 7.2.21

The issue you are facing:
Cannot open file in folder shared from remote server via federated share.
Error: “Firefox prevented this page from loading in this way because the page has a content security policy that disallows it.” I am unable to locate a setting on the sending account that would adjust a security policy.

Is this the first time you’ve seen this error? (Y/N): Yes

Steps to replicate it:

On sending account:

  1. Click share link for a folder
  2. Enter remote server as user@<remote_serve_rurl>
  3. Click echoed label to establish share

On receiving account

  1. Click notify icon then click to accept the share
  2. Click Shares link on left side of screen
  3. On Shares list, click shared folder
  4. Folder opens
  5. Click on a file in the folder
  6. This error appears after 30+ seconds:
    “Firefox prevented this page from loading in this way because the page has a content security policy that disallows it.”

The output of your Nextcloud log in Admin > Logging:

Receiving account
Error	PHP	Module 'pgsql' already loaded at Unknown#0	
2020-02-05T22:22:39-0500
Error	PHP	Module 'pgsql' already loaded at Unknown#0	
2020-02-05T22:22:36-0500
Error	PHP	Module 'pgsql' already loaded at Unknown#0	
2020-02-05T22:22:29-0500
Error	PHP	Module 'pgsql' already loaded at Unknown#0	
2020-02-05T22:22:26-0500
Error	PHP	Module 'pgsql' already loaded at Unknown#0	
2020-02-05T22:20:36-0500
Error	PHP	Module 'pgsql' already loaded at Unknown#0	
2020-02-05T22:20:32-0500
Error	PHP	Module 'pgsql' already loaded at Unknown#0	
2020-02-05T22:20:32-0500
Error	PHP	Module 'pgsql' already loaded at Unknown#0	
2020-02-05T22:20:32-0500
Error	PHP	Module 'pgsql' already loaded at Unknown#0	
2020-02-05T22:20:31-0500
Error	PHP	Module 'pgsql' already loaded at Unknown#0	
2020-02-05T22:20:30-0500
Error	PHP	Module 'pgsql' already loaded at Unknown#0	
2020-02-05T22:20:12-0500
Error	PHP	Module 'pgsql' already loaded at Unknown#0	
2020-02-05T22:19:38-0500
Error	PHP	Module 'pgsql' already loaded at Unknown#0	
2020-02-05T22:17:49-0500
Error	PHP	Module 'pgsql' already loaded at Unknown#0	
2020-02-05T22:16:49-0500
Error	PHP	Module 'pgsql' already loaded at Unknown#0	
2020-02-05T22:14:20-0500
Error	PHP	Module 'pgsql' already loaded at Unknown#0	
2020-02-05T22:14:06-0500
Error	PHP	Module 'pgsql' already loaded at Unknown#0	
2020-02-05T22:13:41-0500
Error	PHP	Module 'pgsql' already loaded at Unknown#0	
2020-02-05T22:13:35-0500
Error	PHP	Module 'pgsql' already loaded at Unknown#0	
2020-02-05T22:13:20-0500
Error	PHP	Module 'pgsql' already loaded at Unknown#0	
2020-02-05T22:07:22-0500

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

Not able to access this

The output of your Apache/nginx/system log in /var/log/____:

Not able to access this