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

[Bug] wopi in web development setup is broken because of CSP #9084

Closed
ScharfViktor opened this issue May 6, 2024 · 6 comments · Fixed by owncloud/web#10885
Closed

[Bug] wopi in web development setup is broken because of CSP #9084

ScharfViktor opened this issue May 6, 2024 · 6 comments · Fixed by owncloud/web#10885
Labels

Comments

@ScharfViktor
Copy link
Contributor

No description provided.

@dschmidt dschmidt changed the title wopi example is broken [Bug] wopi in web development setup is broken because of CSP May 6, 2024
@dschmidt
Copy link
Member

dschmidt commented May 6, 2024

I assume #8777 (see also #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?

@DeepDiver1975
Copy link
Member

Let me have a look into my crystal call .....

@dschmidt
Copy link
Member

dschmidt commented May 6, 2024

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

@DeepDiver1975
Copy link
Member

We're in oCIS Zoom - feel free to join and we'll show you.

Not today .... meetings .... 🤷

@DeepDiver1975
Copy link
Member

DeepDiver1975 commented May 6, 2024

Feel free to look into

- ./config/ocis/csp.yaml:/etc/ocis/csp.yaml

- 'https://${ONLYOFFICE_DOMAIN|onlyoffice.owncloud.test}/'

PROXY_CSP_CONFIG_FILE_LOCATION: /etc/ocis/csp.yaml
COLLABORA_DOMAIN: ${COLLABORA_DOMAIN:-collabora.owncloud.test}
ONLYOFFICE_DOMAIN: ${ONLYOFFICE_DOMAIN:-onlyoffice.owncloud.test}

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.

@ScharfViktor
Copy link
Contributor Author

fix here owncloud/web#10885

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

Successfully merging a pull request may close this issue.

3 participants