# AllowTransparency in embed iframe

**URL:** https://meta.discourse.org/t/allowtransparency-in-embed-iframe/171475
**Category:** Feature
**Created:** [November 27, 2020, 8:16am UTC](https://meta.discourse.org/t/allowtransparency-in-embed-iframe/171475 "2020-11-27T08:16:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![garry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/garry/32/201467_2.png) [@garry](https://meta.discourse.org/u/garry)
#### Post date: [November 27, 2020, 8:16am UTC](https://meta.discourse.org/t/allowtransparency-in-embed-iframe/171475/1 "2020-11-27T08:16:25Z")

</div>

Would it be possible to set allowtransparency to true on the iframe in embeds?

If it can’t be enabled by default (I don’t know if there’s any security risks around it etc), maybe it could be an option passed via the `DiscourseEmbed` object?

**Reasoning:**

I’d like to get the [comments on this page](https://sbox.facepunch.com/news/laying-foundations) looking exactly like the other sections. That would be possible with allowtransparency, and it feels a bit hacky to write JS to watch for the iframe to set it that way.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [February 22, 2021, 3:34am UTC](https://meta.discourse.org/t/allowtransparency-in-embed-iframe/171475/2 "2021-02-22T03:34:50Z")

</div>

Hey @garry,

First sorry it took so long to reply here. Now about your feature request, would adding this extra attribute in a plugin work for you? If that is helpful I can probably create a simple one for you.
