Iframe embedding

Um, I understand this is probably not going to get anywhere, but would it be possible to embed an iframe? Like so:

<iframe width="320" height="130" frameborder="0" src="https://www.shadertoy.com/embed/3XGBWG?gui=true&t=10&paused=true&muted=false" allowfullscreen></iframe>

Then you could have posts with embedded shadertoys :grinning_face:

I can perhaps guess what you are going to say though..

Sounds like a terrible security risk, not to mention risk to aesthetic sensibilities. Allowing any user to embed any website into the forum? I don’t like the things that would be possible with that.

Fair do’s, I kinda already knew that, just knew it was possible with Discourse but if it was me I wouldn’t allow it either.. worth a try though :joy:

1 Like

Yeah, iframe URLs need to be whitelisted, and I’ve mostly stuck with the default list:

https://www.google.com/maps/embed?
https://www.openstreetmap.org/export/embed.html?
https://calendar.google.com/calendar/embed?
https://codepen.io/*/embed/preview/
https://upload.wikimedia.org/
https://ourworldindata.org/grapher/
1 Like

Codepen is fine, cool, thanks.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.