Embedding 3D models in posts
-
I am looking for a way to be able to embed a 3D model in NodeBB post. For example, the embed code you get from sketchfab looks like this:
<iframe width="640" height="480" src="https://sketchfab.com/models/51426b30bd7848138617bf1e7f212793/embed" frameborder="0" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>
I dont think that code can be used directly inside a post. Although, for some reason it seems to work in my local dev instance.
Do I need to write a plugin to embed sketchfab 3D models?
-
@arasbm A
nodebb-plugin-iframe
, I guess? That sounds really useful. -
The same origin policy would protect against most of that stuff, but I agree. Maybe having a url filter of some sort testing it against a whitelisted database which could be configure by the admins.
Copyright © 2024 NodeBB | Contributors