- Issue created by @marcolam
- 🇨🇳China marcolam
The http port are accessble to each other(drupal and docs server).
- 🇩🇪Germany donquixote
I get the same.
I used ddev in combination with the docker-compose setup from https://github.com/ONLYOFFICE/Docker-DocumentServer.
(My setup is a bit messy, but that's not relevant here)The browser console gives me:
GET http://localhost:1080/web-apps/apps/api/documents/api.js net::ERR_BLOCKED_BY_CLIENT
This is not surprising, because my Drupal site is at https://onlyoffice.ddev.site/, whereas the onlyoffice is at http://localhost:1080/.
The failing script is http://localhost:1080/web-apps/apps/api/documents/api.js.The problem is the cross-origin policy.
We need an Access-Control-Allow-Origin header. But I don't know where to configure that. - 🇩🇪Germany donquixote
So, I can bypass the cross-origin issue if I visit ddev Drupal at the ip address + port (https://127.0.0.1:32782/, but this changes on ddev restart), I think this counts as same origin as localhost.
Now I see something that looks like an editor, but I get "Download failed" - "Press OK to return to document list".
In the Network tab I see a web socket request to "ws://localhost:1080/7.5.1-23/doc/83f2a2b4-8f3b-4dea-91ba-14a4f4b1a54a_MTcwMTI5MDYwNw==/c/?EIO=4&transport=websocket" which shows as "Pending".
So I assume this web socket communication is not working.
Anyway, it would be useful to have an example setup as suggested in 📌 Example setup with ddev and/or docker-compose Active .
Hello @marcolam,
Could you please submit a ticket at helpdesk.onlyoffice.com, so we can troubleshoot the case? Please add a note "For technical support 2 level" in the subject.