# Embedding in Discourse

**URL:** <https://meta.discourse.org/t/embedding-in-discourse/124685>\
**Category:** Product Support\
**Created:** [2 באוגוסט,‏ 2019,‏ 3:07am UTC](https://meta.discourse.org/t/embedding-in-discourse/124685 "2019-08-02T03:07:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [2 באוגוסט,‏ 2019,‏ 3:38am UTC](https://meta.discourse.org/t/embedding-in-discourse/124685/2 "2019-08-02T03:38:25Z")

</div>

The topics should get created in the category that you set for the host. From your second screenshot, it looks like the problem is that you have setup two allowed hosts for `localhost:8082`, but the Path Whitelist of the first host is going to cause all topics to be published as uncategorized.

The Path Whitelist needs to be set as a path of the domain you have set in the Allowed Hosts field, so it should start with just `/`. Here’s a screenshot of the settings from my test site. It publishes all topics from my blog to the ‘scratch’ category:

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/d/4d67395c0865fdd631360b46f8dfe83397ff527c.png)

If I wanted to only publish topics from the `/blog` path on my site, I would configure it like this:

![image](https://global.discourse-cdn.com/meta/optimized/3X/8/f/8f59d34f7b0415041bfbf35e0f8c78855a61cf55_2_690x43.png)

I ran into an issue yesterday with posts being published to the uncategorized category of my site when I had set a category for the host. I _think_ the cause of that was that I was trying to publish the topics to a protected category. I’m going to look into that some more to confirm whether or not that was the problem.

---

_[View the full topic](https://meta.discourse.org/t/embedding-in-discourse/124685)._
