Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Allow iframe on wiki.js

    Wiki.js
    wikijs
    2
    5
    5585
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ruihildt
      ruihildt last edited by girish

      I'd like to allow iframe to be rendered when using HTML editor of pages.
      To do it, I need to modify server/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?

      1 Reply Last reply Reply Quote 0
      • girish
        girish Staff last edited by

        @ruihildt In the Admin page of WikiJS -> General, there is a security section:

        26caf0f3-b921-492b-a34c-99b8e6d23495-image.png

        ruihildt 1 Reply Last reply Reply Quote 1
        • ruihildt
          ruihildt @girish last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • girish
            girish Staff last edited by girish

            @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.
            
            ruihildt 1 Reply Last reply Reply Quote 2
            • ruihildt
              ruihildt @girish last edited by

              @girish That works for me, thanks a lot, I'll search more next time before bothering you.

              1 Reply Last reply Reply Quote 1
              • First post
                Last post
              Powered by NodeBB