# Failed to execute postMessage on DOMWindow: The target origin provided does not match

**URL:** <https://meta.discourse.org/t/failed-to-execute-postmessage-on-domwindow-the-target-origin-provided-does-not-match/77260>\
**Category:** Self-hosting\
**Created:** [January 4, 2018, 5:47pm UTC](https://meta.discourse.org/t/failed-to-execute-postmessage-on-domwindow-the-target-origin-provided-does-not-match/77260 "2018-01-04T17:47:53Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Ingo\_Karstein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ingo_karstein/32/206923_2.png) [@Ingo\_Karstein](https://meta.discourse.org/u/Ingo_Karstein)\
**Post date:** [January 5, 2018, 8:27pm UTC](https://meta.discourse.org/t/failed-to-execute-postmessage-on-domwindow-the-target-origin-provided-does-not-match/77260/7 "2018-01-05T20:27:19Z")

</div>

It works now! My last try was to edit the “discourseEmbedUrl” in JavaScript that need to be exact the referer URL / URL of the page where Discourse is embedded in.

Thank you all for your help!

---

_[View the full topic](https://meta.discourse.org/t/failed-to-execute-postmessage-on-domwindow-the-target-origin-provided-does-not-match/77260)._
