Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content Security Policy Headers and multiple trusted_domains #5873

Closed
awlx opened this issue Jul 25, 2017 · 2 comments
Closed

Content Security Policy Headers and multiple trusted_domains #5873

awlx opened this issue Jul 25, 2017 · 2 comments

Comments

@awlx
Copy link

awlx commented Jul 25, 2017

Hi everybody,

I got some complains of users that Nextcloud is not working anymore as in showing a blank page or not being able to login anymore.

I inspected the issue and saw, that Chrome forbids some content because of CSP violation. It happens for every trusted_domain except the "0" domain. Because background images and .js scripts seem to get delivered from the first domain in the array and thus are blocked.

It's nearly the same issue as here #4840 only that no Cloudflare is involved just more than one domain name.

http://i.imgur.com/iuWeGmC.png

Maybe it's a new bug?

@LukasReschke
Copy link
Member

Duplicate of #5329 aka will be fixed with 12.0.1 (#5584)

@LukasReschke LukasReschke marked this as a duplicate of #5329 Jul 27, 2017
@Zyplonox
Copy link

Im using apache 2.4.27 on a ubuntu 17.10 machine with MySQL and php 7.1.11. My Nextcloud version is 12.0.3. If i set the Content Security Policy Header i cant press the login button anymore. I used this to set the CSP:
Header unset Content-Security-Policy
Header add Content-Security-Policy "default-src 'self'"
Header unset X-Content-Security-Policy
Header add X-Content-Security-Policy "default-src 'self'"
Header unset X-WebKit-CSP
Header add X-WebKit-CSP "default-src 'self'"

1
2

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants