Embedding not working


(mkiehl) #1

Hi everyone,

I am currently trying to embed my Discourse into other sites, but the embedded site gets stuck at “Loading Discussions…”

My setup is as follows: Installed Discourse from Docker, using SAML for authentication (disabled local users). Discourse is hosted at https://forum.example.com behind an Apache reverse proxy that handles SSL.
The embedding page (a static forum.html for testing) is located at https://www.example.com/forum.html
Embedding is allowed for “www.example.com” with the path whitelist “.*”

Chrome does not show any errors when loading the page, but after some seconds the following error gets output repeatedly:

comments:17 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://forum.example.com') does not match the recipient window's origin ('https://www.example.com').

Is there anything else I need to configure, e.g. some special headers for the reverse proxy at forum.example.com or for www.example.com?

Thanks in advance for any advice!


(mkiehl) #2

Unfortunately I couldn’t find a solution to this problem yet.


#3

Having the same issue as you trying to embed comments.


#4

same issue here. can not use urgently needed “discourse embedding”.