# "Error Embedding" comments

**URL:** https://meta.discourse.org/t/error-embedding-comments/151057
**Category:** Support
**Created:** [May 11, 2020, 2:34pm UTC](https://meta.discourse.org/t/error-embedding-comments/151057 "2020-05-11T14:34:04Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)
#### Post date: [May 11, 2020, 7:56pm UTC](https://meta.discourse.org/t/error-embedding-comments/151057/2 "2020-05-11T19:56:29Z")

</div>

> [@rawtaz](#):
>
> DiscourseEmbed = { discourseUrl: ‘[https://forum.foo.com/](https://forum.foo.com/)’, discourseEmbedUrl: ‘[http://localhost:1313/blog/2019-11-22-foo-0.9.6-released/](http://localhost:1313/blog/2019-11-22-foo-0.9.6-released/)’ };

You might want to use `topicID` as mentioned at [Embed Discourse comments on another website via Javascript](https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963#alternate-configuration-linking-to-existing-topics).

I wouldn’t be surprised if “localhost” is prohibited for various reasons. This would tell your forum server to embed on itself. 😵

If you are using Hugo maybe load the comment template conditionally, or pass baseURL explicitly in the template, so even during development you’ll load `discourseEmbedUrl: 'https://foo.com/blog/2019-11-22/foo-0.9.6-released'`.

---

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