# Embedding error

**URL:** https://meta.discourse.org/t/embedding-error/135153
**Category:** Support
**Created:** [December 5, 2019, 1:20pm UTC](https://meta.discourse.org/t/embedding-error/135153 "2019-12-05T13:20:54Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [October 15, 2020, 8:24pm UTC](https://meta.discourse.org/t/embedding-error/135153/12 "2020-10-15T20:24:41Z")

</div>

> [@a\_lee](#):
>
> `Message' on 'DOMWindow': The target origin provided ('https://forum.comses.net') does not match the recipient window's origin ('https://www.comses.net').`

Sorry for the late reply. Can you try adding `discourseReferrerPolicy: 'no-referrer-when-downgrade'` to the `DiscourseEmbed` object that’s set in the embed code snippet? There is a full example of a code snippet that adds that property here: [Embed Discourse comments on another website via Javascript - #353](https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963/353).

If you try that, please let us know if it solves the issue for you.

> [@Deyner\_López](#):
>
> The same happens to me.

I think this was resolved here: [Embed Discourse comments on another website via Javascript - #365](https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963/365). In that case the problem was a missing `www` subdomain on the Discourse embeddable host record.

Edit: this issue has now been fixed in the core Discourse code. There is no longer a need to set the `discourseReferrerPolicy` variable to `'no-referrer-when-downgrade'`. Discourse now sets the referrer policy to `'no-referrer-when-downgrade'` by default. For details about this, see [https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963#setting-the-referrer-policy](https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963#setting-the-referrer-policy).

---

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