# Discourse embed blocked on "Loading Discussion..."

**URL:** https://meta.discourse.org/t/discourse-embed-blocked-on-loading-discussion/34411
**Category:** Support
**Tags:** embedding
**Created:** [12 Octubre, 2015 16:15 UTC](https://meta.discourse.org/t/discourse-embed-blocked-on-loading-discussion/34411 "2015-10-12T16:15:20Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Anthony\_Lethuillier](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/anthony_lethuillier/32/47111_2.png) [@Anthony\_Lethuillier](https://meta.discourse.org/u/Anthony_Lethuillier)
#### Post date: [12 Octubre, 2015 16:15 UTC](https://meta.discourse.org/t/discourse-embed-blocked-on-loading-discussion/34411/1 "2015-10-12T16:15:20Z")

</div>

Hello,

I have set up a Discourse instance on my server and it works fine.

But when I try to embed it on my Ghost blog the Discourse frame just shows

“Loading Discussion…”

Here is the code I insert :

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

<script type="text/javascript">
  DiscourseEmbed = { discourseUrl: 'http://discourse.domain.net/',
                                discourseEmbedUrl: 'http://subdomain.domain{{url}}'};

  (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>

```

I use the admin username I set up first and the allowed host is [blog.domain.net](http://blog.domain.net)

The [discourse.domain.net/logs](http://discourse.domain.net/logs) gives me no errors

Any advice on what to do next ?

Thanks

---

<div class="post-metadata">

### Author: ![Anthony\_Lethuillier](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/anthony_lethuillier/32/47111_2.png) [@Anthony\_Lethuillier](https://meta.discourse.org/u/Anthony_Lethuillier)
#### Post date: [12 Octubre, 2015 19:59 UTC](https://meta.discourse.org/t/discourse-embed-blocked-on-loading-discussion/34411/2 "2015-10-12T19:59:08Z")

</div>

So i’ve tried a few things and I think I have located the problem.

The comment topics are created properly in Discourse and they have the following url :

[http://discourse.domain.net/t/name\_of\_blog\_post/14/1](http://discourse.domain.net/t/name_of_blog_post/14/1)

But I checked what url the embed part was looking for and Firefox gave me this

[http://discourse.domain.net/embed/comments?embed\_url=%2Fname\_of\_blog\_post%2F](http://discourse.domain.net/embed/comments?embed_url=%2Fname_of_blog_post%2F)

Why does that difference exist ?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [12 Octubre, 2015 22:14 UTC](https://meta.discourse.org/t/discourse-embed-blocked-on-loading-discussion/34411/3 "2015-10-12T22:14:03Z")

</div>

Anything to add here @eviltrout? Something we can make clearer in the instructions?

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [13 Octubre, 2015 02:21 UTC](https://meta.discourse.org/t/discourse-embed-blocked-on-loading-discussion/34411/4 "2015-10-13T02:21:24Z")

</div>

> [@Anthony\_Lethuillier](#):
>
> discourseEmbedUrl: ‘test’ };

I think this should be the canonical URL of the blog post, not `test`.

---

<div class="post-metadata">

### Author: ![Anthony\_Lethuillier](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/anthony_lethuillier/32/47111_2.png) [@Anthony\_Lethuillier](https://meta.discourse.org/u/Anthony_Lethuillier)
#### Post date: [13 Octubre, 2015 06:10 UTC](https://meta.discourse.org/t/discourse-embed-blocked-on-loading-discussion/34411/5 "2015-10-13T06:10:57Z")

</div>

Sorry I hadn’t updated my original posts,

I tried :

```
discourseEmbedUrl: 'http://subdmomain.domain{{url}}' and the result is the same

```

It gives me the following request :

```
http://discourse.domain.net/embed/comments?embed_url=http%3A%2F%2Fsubdmomain.domain%2Fname_of_blog_post%2F

```

---

<div class="post-metadata">

### Author: ![Anthony\_Lethuillier](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/anthony_lethuillier/32/47111_2.png) [@Anthony\_Lethuillier](https://meta.discourse.org/u/Anthony_Lethuillier)
#### Post date: [13 Octubre, 2015 06:49 UTC](https://meta.discourse.org/t/discourse-embed-blocked-on-loading-discussion/34411/6 "2015-10-13T06:49:42Z")

</div>

Ok problem solved 😄

it was

```
'http://subdmomain.domain{{url}}' 

```

I forgot the .net, dumb of me.

Thank you so mu for your help

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [13 Octubre, 2015 06:51 UTC](https://meta.discourse.org/t/discourse-embed-blocked-on-loading-discussion/34411/7 "2015-10-13T06:51:10Z")

</div>


