# Error embedding Discourse

**URL:** <https://meta.discourse.org/t/error-embedding-discourse/148601>\
**Category:** Product Support\
**Created:** [April 20, 2020, 12:07pm UTC](https://meta.discourse.org/t/error-embedding-discourse/148601 "2020-04-20T12:07:49Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Roque\_Terrani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roque_terrani/32/177540_2.png) [@Roque\_Terrani](https://meta.discourse.org/u/Roque_Terrani)\
**Post date:** [April 20, 2020, 12:07pm UTC](https://meta.discourse.org/t/error-embedding-discourse/148601/1 "2020-04-20T12:07:49Z")

</div>

Hi! I am part of the team of Grow with Jane, we are a web platform for cannabis growers. We already have a very successful tracking app but we are trying to create an online community now. We have a Wordpress installed where we publish some of our user plants (we are not using posts, it’s a custom plugin that we made). And now we want to add a comment box in each growlog.  
We are loving Discourse, we think that is going to be a game changer for our community, but I really need to have the embeding working.

I am trying to embed my discourse in my dev website and is not working.

My browser is throwing me this error ( I added some spaces in the urls because I can’t post more than one link)

> Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘’) does not match the recipient window’s origin (‘’).  
> VM1412 embed-application-08a52625979d3d44aac8a2dedf5a1a662fec81ffe8a9ebc2e6eefb15b2980874.js:1 Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘https:// discourse.growithjane. com’) does not match the recipient window’s origin (‘https:// dev.growithjane. com’).

I enabled CORS in app.yml  
I added my deb website domain in the CORS origin configuration  
I added a host in the embedding configuration  
I added the HTML code in my page

My testing page: [https://dev.growithjane.com/test-embed/](https://dev.growithjane.com/test-embed/)  
My configuration

 ![Admin - Grow with Jane - DEV ENVIRONMENT 2020-04-20 08-49-44](https://global.discourse-cdn.com/meta/original/3X/4/c/4c97e7a22a69550c1f5b4ef6520c5d95b396899e.png)

---

_[View the full topic](https://meta.discourse.org/t/error-embedding-discourse/148601)._
