# Support embedding Discourse in an iframe

**URL:** <https://meta.discourse.org/t/support-embedding-discourse-in-an-iframe/50405>\
**Category:** Feature\
**Tags:** embedding\
**Created:** [2016年九月20日 18:46 UTC](https://meta.discourse.org/t/support-embedding-discourse-in-an-iframe/50405 "2016-09-20T18:46:09Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![bekircem](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bekircem/32/44582_2.png) [@bekircem](https://meta.discourse.org/u/bekircem)\
**Post date:** [2022年五月14日 11:59 UTC](https://meta.discourse.org/t/support-embedding-discourse-in-an-iframe/50405/12 "2022-05-14T11:59:18Z")

</div>

> **[GitHub - BeXcellent/discourse-allowiframe: Changes X-Frame-Options to allow iframe embedding.](https://github.com/BeXcellent/discourse-allowiframe)**
>
> Changes X-Frame-Options to allow iframe embedding.

这是一个简单的插件。但是，它不起作用。由于它是在 6 年前更新的，能否通过简单的更改使其正常工作？

```plaintext
# name: 允许 iFrame 嵌入
# about: 更改 X-Frame-Options 以便嵌入站点
# version: 1
# authors: bex-team, riking,

Rails.application.config.action_dispatch.default_headers.merge!({'X-Frame-Options' => 'ALLOWALL'})

```

---

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