Closed exu-g closed 2 weeks ago
On a whim I decided to disable all Content Security Policies and restart the app.
Without CSPs the page loads normally.
How can I figure out which policy is missing?
Current CSP:
add_header Content-Security-Policy "connect-src 'self'; default-src 'none'; font-src 'self' data:; frame-src 'self' https://onlyoffice.exu.li; img-src 'self' data: https://* blob:; media-src 'self'; script-src-elem 'self' 'unsafe-inline' https://onlyoffice.exu.li; style-src-elem 'self' 'unsafe-inline'; style-src-attr 'unsafe-inline'; worker-src 'self'; frame-ancestors 'self';";
Nextcloud sets csp automatically. You don't need to set it like this.
Thanks, I didn't know that.
I guess I always had some form of security policy with X-Frame-Options and later CSP active, so I never noticed.
Describe the bug
I'm getting the "Failed to fetch" error every time I'm visiting the main timeline page.
My efforts to find blocked connections on the server side so far haven't turned up anything and I wasn't able to find anything relevant in Logcat on my phone.
Memories in Nextcloud is fully working and shows the timeline without issue. Preview Generator is working as well.
Steps To Reproduce
Platform
Screenshots
No response
Additional context
I'm running Nextcloud with Apache2, but behind an nginx reverse proxy. Here are the relevant lines from the log for both:
nginx
apache2