# Discourse not shown in iframe

**URL:** https://meta.discourse.org/t/discourse-not-shown-in-iframe/26970
**Category:** Support
**Tags:** unsupported-install
**Created:** [30 במרץ,‏ 2015,‏ 1:45am UTC](https://meta.discourse.org/t/discourse-not-shown-in-iframe/26970 "2015-03-30T01:45:10Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)
#### Post date: [30 במרץ,‏ 2015,‏ 4:05am UTC](https://meta.discourse.org/t/discourse-not-shown-in-iframe/26970/5 "2015-03-30T04:05:55Z")

</div>

Discourse (actually Rails) sends a `X-Frame-Options` header that tells browsers that the site does not wish to be embedded in an iframe, hence all modern browsers will simply render a white square. You can see this in e.g. Chrome’s dev console which says

```
Refused to display 'http://archy.no-ip.org:82/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

```

The only way to “fix” this is to hack Discourse yourself: move the `EmbedController`’s `before_filter` and `ensure_embeddable` method into the main `ApplicationController` and set the `embeddable host` site setting. But, while it _can_ be done, you’ll be on _extremely_ unsupported terrain…

---

_[View the full topic](https://meta.discourse.org/t/discourse-not-shown-in-iframe/26970)._
