# 404 not found when embedding comments

**URL:** https://meta.discourse.org/t/404-not-found-when-embedding-comments/162026
**Category:** Support
**Created:** [August 25, 2020, 2:39pm UTC](https://meta.discourse.org/t/404-not-found-when-embedding-comments/162026 "2020-08-25T14:39:54Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![jamiep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamiep/32/191646_2.png) [@jamiep](https://meta.discourse.org/u/jamiep)
#### Post date: [August 25, 2020, 2:39pm UTC](https://meta.discourse.org/t/404-not-found-when-embedding-comments/162026/1 "2020-08-25T14:39:54Z")

</div>

![Screenshot 2020-08-25 at 14.29.25](https://global.discourse-cdn.com/meta/original/3X/1/2/128250fbe469900dea91e6a6ff47f68ef00f4d2a.png)

I’m new with Discourse and I can’t figure out why I’m getting 404 error status messages when trying to load comments on my Ghost blog.

---

<div class="post-metadata">

### Author: ![jamiep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamiep/32/191646_2.png) [@jamiep](https://meta.discourse.org/u/jamiep)
#### Post date: [August 25, 2020, 2:40pm UTC](https://meta.discourse.org/t/404-not-found-when-embedding-comments/162026/2 "2020-08-25T14:40:46Z")

</div>

It doesn’t seem to be a problem with my settings in Admin / Customize / Embedding. I have the loosest possible matching criteria set.

 ![Screenshot 2020-08-25 at 14.30.57](https://global.discourse-cdn.com/meta/original/3X/7/b/7bcfc61197399f2f4601e4ed1405b48a09809df3.png)

---

<div class="post-metadata">

### Author: ![jamiep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamiep/32/191646_2.png) [@jamiep](https://meta.discourse.org/u/jamiep)
#### Post date: [August 25, 2020, 2:41pm UTC](https://meta.discourse.org/t/404-not-found-when-embedding-comments/162026/3 "2020-08-25T14:41:19Z")

</div>

I don’t think there is a problem with the HTML I have used to embed the comments??

Is this a problem with cross-site communication??

See line 114 - 124:

> <https://gist.github.com/jamiepratt/50912046fca43484e8af46b4b28b7d21#file-post-hbs-L114>

---

<div class="post-metadata">

### Author: ![jamiep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamiep/32/191646_2.png) [@jamiep](https://meta.discourse.org/u/jamiep)
#### Post date: [August 25, 2020, 2:50pm UTC](https://meta.discourse.org/t/404-not-found-when-embedding-comments/162026/4 "2020-08-25T14:50:08Z")

</div>

[Here is the URL of one of the pages in question.](https://www.jamiep.org/all/sounds-of-khao-sok-forest-recorded-at-praiwan-house-boat/)

---

<div class="post-metadata">

### Author: ![jamiep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamiep/32/191646_2.png) [@jamiep](https://meta.discourse.org/u/jamiep)
#### Post date: [August 25, 2020, 2:50pm UTC](https://meta.discourse.org/t/404-not-found-when-embedding-comments/162026/5 "2020-08-25T14:50:43Z")

</div>

The topics which should be being embedded are being created on my discourse instance: [https://discourse.designedbyselection.org/t/sounds-of-khao-sok-forest-recorded-at-praiwan-house-boat/24](https://discourse.designedbyselection.org/t/sounds-of-khao-sok-forest-recorded-at-praiwan-house-boat/24)

---

<div class="post-metadata">

### Author: ![jamiep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamiep/32/191646_2.png) [@jamiep](https://meta.discourse.org/u/jamiep)
#### Post date: [August 25, 2020, 2:51pm UTC](https://meta.discourse.org/t/404-not-found-when-embedding-comments/162026/6 "2020-08-25T14:51:14Z")

</div>

I am using the latest version of Discourse installed by @pfaffman a few days ago. 2.6.0.beta2 ( [66976baefa](https://github.com/discourse/discourse/commits/66976baefa52fe503c7fa2c396b15568464619ef))

Thanks for any help!!

---

<div class="post-metadata">

### Author: ![jamiep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamiep/32/191646_2.png) [@jamiep](https://meta.discourse.org/u/jamiep)
#### Post date: [August 26, 2020, 4:40am UTC](https://meta.discourse.org/t/404-not-found-when-embedding-comments/162026/7 "2020-08-26T04:40:06Z")

</div>

I’m having the same problem [on a web site at a different domain.](https://sex.designedbyselection.org/extra-materials/marco-del-giudice-the-evolutionary-psychology-of-gender-differences-part-1/)

I’ve poked around this forum and the documentation and can’t see what I might be doing wrong or how to fix this issue.

---

<div class="post-metadata">

### Author: ![jamiep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamiep/32/191646_2.png) [@jamiep](https://meta.discourse.org/u/jamiep)
#### Post date: [August 26, 2020, 5:03am UTC](https://meta.discourse.org/t/404-not-found-when-embedding-comments/162026/8 "2020-08-26T05:03:46Z")

</div>

Oh! Apparently the requests that were failing with a 404 from my other domain are now working on this domain but the comments are still not showing up.

Details of the now successful request:

1. Request URL: [https://discourse.designedbyselection.org/mini-profiler-resources/results](https://discourse.designedbyselection.org/mini-profiler-resources/results)
2. Request Method: POST
3. Status Code: 200
4. Remote Address: 104.131.79.11:443
5. Referrer Policy: strict-origin-when-cross-origin

---

<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: [August 26, 2020, 10:34pm UTC](https://meta.discourse.org/t/404-not-found-when-embedding-comments/162026/9 "2020-08-26T22:34:30Z")

</div>

When I go to that URL, it seems that the comments are being correctly embedded. There are no comments on the post’s Discourse topic, so no comments are displayed. Are you still having issues with this, or is the problem resolved?

---

<div class="post-metadata">

### Author: ![jamiep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamiep/32/191646_2.png) [@jamiep](https://meta.discourse.org/u/jamiep)
#### Post date: [August 27, 2020, 9:37am UTC](https://meta.discourse.org/t/404-not-found-when-embedding-comments/162026/10 "2020-08-27T09:37:48Z")

</div>

Oh, sorry not to post back here!

I figured out what was going on. It seems that discourse was working great all along.

What confused me was:

- I was seeing 404 errors in the Network tab of the Chrome Inspect window when I was embedding Discourse comments on a different domain to the discourse server [here for example.](https://www.jamiep.org/silliness/superman/). This is probably the expected behaviour of the mini-profiler which seems to be the thing that displays the loading time ?for admins only?
- I hadn’t read the documentation properly and was expecting to see an interface for entering comments appear on my site. Since I hadn’t actually commented on the blog articles there was very little being embedded in the page, only a link to the discourse server topic.
- My blog theme had a dark background and what was embedded in the blog page was not visible against the dark background. I fixed this with the CSS below.

```css
div#discourse-comments {
        background-color: white;
        border-radius: 25px;
        padding: 20px;
}

```

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [September 26, 2020, 9:39am UTC](https://meta.discourse.org/t/404-not-found-when-embedding-comments/162026/11 "2020-09-26T09:39:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
