# Trouble with embedding

**URL:** https://meta.discourse.org/t/trouble-with-embedding/154395
**Category:** Support
**Created:** [June 10, 2020, 9:26am UTC](https://meta.discourse.org/t/trouble-with-embedding/154395 "2020-06-10T09:26:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kuba-orlik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kuba-orlik/32/318490_2.png) [@kuba-orlik](https://meta.discourse.org/u/kuba-orlik)
#### Post date: [June 10, 2020, 9:26am UTC](https://meta.discourse.org/t/trouble-with-embedding/154395/1 "2020-06-10T09:26:41Z")

</div>

I’ve ran into an issue while setting up Discourse as a comment system for our blog.

We’ve set up a proper whitelist:

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/f/ef8d29c191958e711e488f31fbff4068284a20c1.png)

And we’re using this embed code:

```plaintext
<div id='discourse-comments'></div>

<script type="text/javascript">
  DiscourseEmbed = { discourseUrl: 'https://forum.midline.pl/',
                     discourseEmbedUrl: 'https://www.midline.pl/iphone-vs-interoperacyjnosc/' };

  (function() {
    var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
    d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
  })();
</script>

```

However, the comments don’t show up. The behavior is different in Firefox:

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/9/9972b2a0c410639c3f4068401367a0d703c6171d.png)

Than in Chrome:

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/0/10c1f6e3e2ff44e206733ce7635c732388f22c81.png)

Discourse runs on the same machine in Docker behind a reverse proxy (nginx).

How can we approach debugging this?
