# JavaScript embed won’t display embed, console log shows: Failed to execute postMessage on DOMWindow…

**URL:** https://meta.discourse.org/t/javascript-embed-won-t-display-embed-console-log-shows-failed-to-execute-postmessage-on-domwindow/169374
**Category:** Support
**Created:** [November 5, 2020, 8:58pm UTC](https://meta.discourse.org/t/javascript-embed-won-t-display-embed-console-log-shows-failed-to-execute-postmessage-on-domwindow/169374 "2020-11-05T20:58:52Z")
**Posts on this page:** 1
**Showing post:** 13

<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: [January 14, 2021, 12:22am UTC](https://meta.discourse.org/t/javascript-embed-won-t-display-embed-console-log-shows-failed-to-execute-postmessage-on-domwindow/169374/13 "2021-01-14T00:22:16Z")

</div>

> [@seeminglee](#):
>
> In order to solve another issue [Unable to generate preview for URLs - #4 by seeminglee](https://meta.discourse.org/t/unable-to-generate-preview-for-urls/175758/4) — i have enabled HEAD requests on the site

Thanks so much for following up on this!

> [@seeminglee](#):
>
> Perhaps this needs to be specified somewhere in the docs.

Possibly this should probably be added to the Troubleshooting section of [Embed Discourse comments on another website via Javascript](https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963#troubleshooting). I’m not sure how common it is to have `HEAD` requests disabled, but it’s a difficult issue to track down for sites where they have been disabled.

---

_[View the full topic](https://meta.discourse.org/t/javascript-embed-won-t-display-embed-console-log-shows-failed-to-execute-postmessage-on-domwindow/169374)._
