I get this error when embeding: "The target origin provided does not match te recipient window's origin"


(Rodrigo Tejero) #1

Hey guys, I started implementing discourse for my company. I’m having an issue I haven’t found solved in other topics, and its the mis-match on recipient window origin.

I have this link:
https://learn.growthinstitute.com/discourse-test.html

The embed gets me a message saying: Error Embedding.

I use the embeding code provided by my discourse account admin:

<script type="text/javascript">
DiscourseEmbed = { discourseUrl: 'https://discourse.growthinstitute.com/', discourseEmbedUrl: 'https://learn.growthinstitute.com/discourse-test.html' };

(function() {
	var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
	d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
	(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
})();

I have learn.growthinstitute.com as an allowed host.

And still no luck.

Any idea how to get this working?

Thanks!