# Mastodon doesn’t embed

**URL:** <https://meta.discourse.org/t/mastodon-doesn-t-embed/345561>\
**Category:** Product Support\
**Tags:** embedding\
**Created:** [January 4, 2025, 9:46am UTC](https://meta.discourse.org/t/mastodon-doesn-t-embed/345561 "2025-01-04T09:46:41Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [January 5, 2025, 6:40am UTC](https://meta.discourse.org/t/mastodon-doesn-t-embed/345561/6 "2025-01-05T06:40:10Z")

</div>

Those posts [used an iframe](https://foorumi.katiska.eu/raw/2436) which will work when the iframe source is allowlisted, e.g.:

```plaintext
<iframe src="https://mastodontti.fi/@jagster/109375542625679201/embed" class="mastodon-embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe>

```

Your problem is likely that [https://foorumi.katiska.eu/](https://foorumi.katiska.eu/) probably has [https://mastodontti.fi/](https://mastodontti.fi/) allowlisted as an iframe source (site setting `allowed iframes`) but not [https://kvarkki.nexus/](https://kvarkki.nexus/).

Here’s how it looks on [try.discourse.org](http://try.discourse.org) without kvarkki allowlisted:

 ![This image shows a Mastodon embed test post with a user named Michael and the text "before:" written below their name. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/a/0/b/a0bd7d48e4e263dc685593b22b736750ffa6abd9.png)

and _with_ it allowlisted:

 ![A screenshot of a social media post with a mastodon embed from Michael to Jakke Lehtonen. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/7/3/e/73e09ce5c3cb9ca7158a8cb2f72e344d7e80f613.png)

content is:

```plaintext
<iframe src="https://kvarkki.nexus/@jagster/113763726148314458/embed" class="mastodon-embed" style="max-width: 100%; border: 0" width="100%" allowfullscreen="allowfullscreen"></iframe>

```

(BTW the script tags on the example you linked are completely ignored, only the iframe is useful/necessary)

* * *

… it might be nifty to have a guide here on “how to enable mastodon embeds on your site”.

The decentralised nature of Mastodon is AWESOME… except there’s no easy way to say “allow all mastodon embeds” since it could be any domain.

Will ponder.

---

_[View the full topic](https://meta.discourse.org/t/mastodon-doesn-t-embed/345561)._
