# Trying to do embedding. Hit with “The referer did not match any of the following hosts:” issue

**URL:** https://meta.discourse.org/t/trying-to-do-embedding-hit-with-the-referer-did-not-match-any-of-the-following-hosts-issue/74803
**Category:** Support
**Created:** [November 25, 2017, 5:47pm UTC](https://meta.discourse.org/t/trying-to-do-embedding-hit-with-the-referer-did-not-match-any-of-the-following-hosts-issue/74803 "2017-11-25T17:47:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Jane\_Jojo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jane_jojo/32/119485_2.png) [@Jane\_Jojo](https://meta.discourse.org/u/Jane_Jojo)
#### Post date: [November 25, 2017, 5:47pm UTC](https://meta.discourse.org/t/trying-to-do-embedding-hit-with-the-referer-did-not-match-any-of-the-following-hosts-issue/74803/1 "2017-11-25T17:47:41Z")

</div>

I tried to setup embedding according to

> [@Embed Discourse comments on another website via Javascript](https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963):
>
> Discourse has the ability to embed the comments from a topic in a remote site using a Javascript API that creates an IFRAME. For an example of this in action, check out [Coding Horror’s blog](http://blog.codinghorror.com/welcome-to-the-internet-of-compromised-things/#discourse-comments). The blog is run via [Ghost](https://ghost.org/) but the comments are embedded from his [Discourse forum](http://discourse.codinghorror.com/t/welcome-to-the-internet-of-compromised-things/3550). One important thing to note with this setup is that users have to navigate to your forum to post replies. This is intentional, as we feel that the posting interface on a Discourse forum is currently much richer than what we …

and I am hit with a

```
Referer:https://www.alittlebitofspice.com/pumpkin-chocolate-swirl-cheesecake-recipe

The referer did not match any of the following hosts:

alittlebitofspice.com
Configure Embedding

```

Here’s how my embedding configuration is setup

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/0/701ce896c2b622ec477f2a5cf9ecb93d2747b8c2.png)

Instead of `discourseEmbedUrl` I’ve used `topicId`

What am I doing wrong here?  
Here’s my blog URL

> **[Pumpkin Chocolate Swirl Cheesecake](https://alittlebitofspice.com/pumpkin-chocolate-swirl-cheesecake-recipe)**
>
> Make this Pumpkin Chocolate Swirl Cheesecake Recipe with an Oreo crust. Rich, creamy, and full of pumpkin spice, it’s the perfect dessert!

and my forum

> **[comments](https://comments.alittlebitofspice.com/)**
>
> Comments for A Little Bit of Spice

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [November 25, 2017, 6:31pm UTC](https://meta.discourse.org/t/trying-to-do-embedding-hit-with-the-referer-did-not-match-any-of-the-following-hosts-issue/74803/2 "2017-11-25T18:31:16Z")

</div>

Since you are using www prefix for your website add it in the `Allowed Hosts` column like `www.alittlebitofspice.com`. Also add `Path Whitelist` value as `.*` to allow all the pages and URL paths.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:43pm UTC](https://meta.discourse.org/t/trying-to-do-embedding-hit-with-the-referer-did-not-match-any-of-the-following-hosts-issue/74803/3 "2024-06-08T12:43:53Z")

</div>

This topic was automatically closed after 2386 days. New replies are no longer allowed.
