I have Drupal 11 set-up and using Collabora Online module to see a demo on my localhost website but document is not loaded and saying “Unauthorized WOPI host” sometimes otherwise blank, here are the details for your further look-up:
Drupal website hosted locally- http:// local.drupal11 Module used- Collabora Online from Drupal Collabora Online server URL in config- http:// localhost:9980 (It returns OK.) WOPI host URLin config- http:// local.drupal11
Further, http:// localhost:9980/hosting/discovery is also returning XML data for your info.
According to the module readme file, I have set-up and when I access a media file that is not loading! Can you help here what are my missing points to see your CODE demo on localhost?
Similarly, I have tried with Wordpress set-up as per your SDK documen but it does not work too!
Please go through the steps, and if it doesn’t work, feel free to share the logs from your setup along with version details. That will help us troubleshoot the issue more effectively.
Also, for WordPress integration, we have a TTT (Tea Time Training) session available on our YouTube channel. You can watch it here: Collabora Online WordPress Integration – TTT
Sorry @hemant but you need to give some insights to solve this how can i know from this blank screen that there something missing ?
Have you read the documentation link i pasted ? have you tried to find reverse proxy issues we had in this forum previously which i kind of similar that you have ?
Have you watched the Wordpress integration session by Hubert ?
Thanks for reaching out. The “Unauthorized WOPI host” message usually indicates a configuration issue, typically with the WOPI host validation or the CheckFileInfo response.
Please take a look at the troubleshooting steps outlined here:
I have added as below host enties in coolwsd.xml file as you suggested-
<wopi>
<host desc=“hostname to allow or deny.” allow=“true”>local.drupal11</host>
<host desc=“hostname to allow or deny.” allow=“true”>127.0.0.1</host>
</wopi>
And, run “sudo systemctl restart coolwsd” but still I am getting the same error attached here.