ocis
ocis copied to clipboard
[Bug] wopi in web development setup is broken because of CSP
I assume https://github.com/owncloud/ocis/pull/8777 (see also https://github.com/owncloud/ocis/pull/9007) broke it. When using Web on port 9200 directly, icons for opening files with wopi apps are not shown and neither onlyoffice nor collabora load because of CSP. Can you please help us fix the setup, @DeepDiver1975?
Let me have a look into my crystal call .....
We're in oCIS Zoom - feel free to join and we'll show you.
Otherwise: it's just docker-compose up -d
in the web repo and then browsing to https://host.docker.internal:9200 and trying to use wopi
We're in oCIS Zoom - feel free to join and we'll show you.
Not today .... meetings .... :shrug:
Feel free to look into https://github.com/owncloud/ocis/blob/045d5450f0f940e838762112a0331ec2f4c996af/deployments/examples/ocis_wopi/docker-compose.yml#L96 https://github.com/owncloud/ocis/blob/045d5450f0f940e838762112a0331ec2f4c996af/deployments/examples/ocis_wopi/config/ocis/csp.yaml#L16 https://github.com/owncloud/ocis/blob/045d5450f0f940e838762112a0331ec2f4c996af/deployments/examples/ocis_wopi/docker-compose.yml#L91-L93
Basically you need to give ocis a csp.yaml config file which specifies the collabory/onlyoffice domains.
Let me know if you need more details.
fix here https://github.com/owncloud/web/pull/10885