#Trying to add Discord widget iframe

6 messages · Page 1 of 1 (latest)

errant kayak
#

Hi! I'm trying to add the Discord widget to our wiki, which is an iframe code generated by Discord itself. I see iframe is not parsed/allowed, is there a way I can enable it?

The code Discord produces looks like this:

<iframe src="https://discord.com/widget?id=[IDHERE]&theme=dark" width="350" height="500" allowtransparency="true" frameborder="0" sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"></iframe>

Thanks for any help!

errant kayak
oak flame
#
Miraheze Developers Wiki

Following the permanent removal of the Widgets extension due to a security vulnerability, and the potential for future risk, here are some viable replacement options:
Extensions: the EmbedVideo, TimedMediaHandler, Video, or YouTube extensions may be viable replacements.

JavaScript:

HTML:

Add the JavaScript to either MediaWiki:{Skin}.js, or M...

#

You can't just add the iframe in the page

#

The CSP does not stop wikitext being parsed

errant kayak
#

OHHH thank you! i will give this a try!