# Embedding error

**URL:** <https://meta.discourse.org/t/embedding-error/135153>\
**Category:** Product Support\
**Created:** [December 5, 2019, 1:20pm UTC](https://meta.discourse.org/t/embedding-error/135153 "2019-12-05T13:20:54Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![a\_lee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/a_lee/32/134326_2.png) [@a\_lee](https://meta.discourse.org/u/a_lee)\
**Post date:** [July 30, 2020, 11:36pm UTC](https://meta.discourse.org/t/embedding-error/135153/3 "2020-07-30T23:36:11Z")

</div>

I just noticed that our sites are running into this issue as well, but only with new posts, not existing posts that already had a companion topic created for them. The `Invalid X-Frame-Options` header appears to be a firefox warning more than an actual error as it always shows up, even if the embedding succeeds.

A working example (with an existing topic when embedding used to work)

> **[The Cardial Spread Model](https://www.comses.net/codebases/5278/releases/1.0.0/)**
>
> The purpose of this model is to provide a platform to test and compare four conceptual models have been proposed to explain the spread of the Impresso-Cardial Neolithic in the west Mediterranean.

Whereas this landing page:

> **[RecovUS: An Agent-Based Model of Post-Disaster Household Recovery](https://www.comses.net/codebases/8f1d300e-6333-4b36-820f-c414016ea395/releases/1.0.0/)**
>
> The purpose of this model is to explain the post-disaster recovery of households residing in their own single-family homes and to predict households’ recovery decisions from drivers of recovery. Herein, a household’s recovery decision is...

eventually receives a 400 bad request response from our Discourse instance..

I’ve been scouring these forums and the documentation for why this might be occurring but haven’t found anything yet.. I thought it might be related to us including the discourse username in the embed payload but this also occurs for content created by users that are properly synced (e.g., [Winter School on Agent-Based Modeling of Social-Ecological Systems](https://www.comses.net/events/584/))

Things I’ve checked:

1. `DISCOURSE_ENABLE_CORS: true` is set
2. cors hosts are correct in the discourse settings with https
3. allowed hosts are set properly (also the embedding works for already created discourse posts)

any other things I should consider looking into? The only other thing I can think of is that we recently integrated our sites with CloudFlare so perhaps there is some cloudflare config that needs to happen to make things work properly. I’m still puzzled as to why existing topics work properly though…

---

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