mastodon.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
The original server operated by the Mastodon gGmbH non-profit

Administered by:

Server stats:

380K
active users

Colin Devroe

@Gargron Did Mastodon.social deprecate its oEmbed support and I missed it? Or, is there a new endpoint?

@cdevroe @Gargron it still works, you can check the HTML code of a post and search for a link element with `type='application/json+oembed'`

@cdevroe @pfefferle It seems like your website content security policy blocks the embed.js script from loading.

@Gargron @pfefferle oh good catch! Perhaps that was updated at some point in the recent past. Because it worked before. Thank you!

@Gargron I'm finally getting a chance to fix the content security policy on my site. What would you recommend I set it to so that embeds from most instances would work?

@Gargron @pfefferle Is there any documentation on what the CSPs should be? I'm allowing iframes from this instance (and, as far as I can tell, the iframe is what loads the embed JS?)?

@Gargron @pfefferle I think I got to the bottom of this finally. Some Mastodon instances return an iframe and some (including mastodon.social) return the full content. And when I built this plugin, if my memory is working, all instances returned iframes. So, I need to update my plugin to include the full response.