# Embedding Post: Can't read CSS Selectors from React Site

**URL:** https://meta.discourse.org/t/embedding-post-cant-read-css-selectors-from-react-site/279316
**Category:** Support
**Tags:** embedding
**Created:** [September 17, 2023, 10:36pm UTC](https://meta.discourse.org/t/embedding-post-cant-read-css-selectors-from-react-site/279316 "2023-09-17T22:36:49Z")
**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: [September 17, 2023, 10:49pm UTC](https://meta.discourse.org/t/embedding-post-cant-read-css-selectors-from-react-site/279316/2 "2023-09-17T22:49:01Z")

</div>

> [@Aaron\_B](#):
>
> I believe it is because my site is built with React and the css selectors are not accessible.

That may be the case although I’d expect the request that Discourse makes to the site to return HTML. Something else to look into is that Discourse caches the content that it’s pulled from the external site for 10 minutes. That means that if you are adjusting the `allowed embed selectors` site setting, you’ll have to wait up to 10 minutes to see the results of the new setting value.

If your Discourse site isn’t yet in production and you have access to the Discourse site’s Rails console, you can clear the cache from the console with `Rails.cache.clear`

Some additional details about the setting are here: [Configuring allowed embed selectors](https://meta.discourse.org/t/configure-the-allowed-embed-selectors-setting/134481/1).

Edit: I _think_ that embedding is working as expected. It’s just tricky to configure for some sites. I’m going to move this topic to #Support.

I created a #Contribute > Feature topic a few months ago suggesting that Discourse should find a better way of parsing embedded posts: [Topic embedding needs some love](https://meta.discourse.org/t/topic-embedding-needs-some-love/262763). I’ll put some time into that soon if no one gets to it before me.

---

_[View the full topic](https://meta.discourse.org/t/embedding-post-cant-read-css-selectors-from-react-site/279316)._
