A user, Flow, is experiencing issues embedding Discourse comments in their static site after switching to a Docker-based Discourse installation. eviltrout suggests checking the JavaScript logs and network tab, which reveals a ‘SAMEORIGIN’ issue. Flow finds the error message, but eviltrout suspects that the embeddable_host may be the culprit. After adjusting the host by removing a trailing slash, Flow gets it working. riking confirms that the trailing slash was the issue. Flow requests a feature to normalize entered URLs for embeddable_host, and codinghorror agrees that better protection is needed. eviltrout subsequently makes the necessary changes to support URLs with http/s and trailing paths.
Did you check the javascript logs in the developer console of the site embedding your discourse site? If there’s nothing there, try checking the network tab and seeing if a request is being made to your server.
After removing and adding a few hosts to embeddable hosts it suddenly worked. I’m nearly 100% positive that I had entered the correct host domain. The only difference I spot now is that it is now without a trailing slash ‘/’. E.g. instead of
Ahh, ok. Then I’d like to state the feature request to ‘normalize’ entered URLs for embeddable_host, e.g. remove http(s):// and a eventually existing trailing slash.