Recent changes to Onebox embedding for my site

Hello there!

On our forum, we’ve seen some recent changes to how links to sites on our domain (makecode.com) are embedded by onebox. Previously, you got a little minimal preview like this:

However, we’re now seeing a more advanced embed where the actual site is hosted in an iframe when the same link is pasted into new posts:

Was there an update made in last few days to onebox and, if so, is there a way to revert to the old behavior? As far as we are aware, we haven’t made any recent changes on our side.

For reference:

Your first post has pretty normal looking onebox code:

But your second post is doing something different with a pxtoembed class and an iframe:

Are you sure there have been no changes? I don’t know much about setting up iframing but there’s an admin setting for “Allowed onebox iframes” you might take a look at.

1 Like

Thanks for taking a look! I’m fairly certain there have been no changes; I did take a look at that setting and it simply had the default value (“*”). I just tried removing that wildcard and replacing it with a single domain (YouTube) but it doesn’t seem to have had any effect on the embed.

That pxtoembed class and iframe that you screenshotted come from the oembed endpoint that we link in the embedded page:

However that’s been there for years, I’m not sure why it suddenly started getting embedded today.

Did you try rebuilding the post’s HTML after that (Post 3 dots > Admin wrench > Rebuild HTML)?