# Discourse not shown in iframe

**URL:** <https://meta.discourse.org/t/discourse-not-shown-in-iframe/26970>\
**Category:** Product 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:** 13

<div class="post-metadata">

**Author:** ![jack2](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jack2](https://meta.discourse.org/u/jack2)\
**Post date:** [16 באוגוסט,‏ 2018,‏ 7:24pm UTC](https://meta.discourse.org/t/discourse-not-shown-in-iframe/26970/13 "2018-08-16T19:24:11Z")

</div>

A solution to run Discourse in an iframe is to create a plugin that contains the following code in `plugin.rb`:

```plaintext
# Changes X-Frame-Options so the site can be embedded in an iframe. See:
# https://github.com/BeXcellent/discourse-allowiframe/blob/master/plugin.rb
# https://github.com/TheBunyip/discourse-allow-same-origin/blob/master/plugin.rb
Rails.application.config.action_dispatch.default_headers.merge!({'X-Frame-Options' => 'ALLOWALL'})

```

---

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