Solved Allow iframe on wiki.js
-
I'd like to allow iframe to be rendered when using HTML editor of pages.
To do it, I need to modifyserver/modules/rendering/html-security/rendering.js
and add this to whitelist:iframe: ['src', 'class', 'style']
My only problem is that this is to be configured in a file that is in
/app/code
.
Is there a way for me to do it? -
@ruihildt In the Admin page of WikiJS -> General, there is a security section:
-
@girish This setting is for "preventing other websites from embedding my wiki in an iframe". While, what I'm trying to do is to allowing embedding of an external iframe.
-
@ruihildt Can you try this comment that says:
I'm able to use iframes without issue in HTML and Markdown pages. Note that you first need to disable HTML sanitization under Administration -> Rendering -> (HTML -> HTML) -> Security.
-
@girish That works for me, thanks a lot, I'll search more next time before bothering you.