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 enable iframe?

    Nextcloud
    iframe
    2
    3
    399
    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.
    • Sam_uk
      Sam_uk last edited by girish

      I'd like to be able to embed some Nextcloud folders in an iframe.

      This is how you'd do it in a traditional environment: https://return2.net/nextcloud-enable-external-iframe/

      How can I do this in Cloudron? Can the app admin add it as a flag in the upstream config? Who is the admin for Nextcloud?

      1 Reply Last reply Reply Quote 0
      • jimcavoli
        jimcavoli App Dev last edited by

        You can't use that particular method of editing the code, but you could look into setting a custom CSP via the app configuration (may need some maintenance to keep everything working in the future) - https://docs.cloudron.io/apps/#custom-csp - You'd need to get a copy of the CSP header being sent by your installation presently, then you can adjust the iframe sources allowed manually and put the entire adjusted CSP in place.

        Sam_uk 1 Reply Last reply Reply Quote 3
        • Sam_uk
          Sam_uk @jimcavoli last edited by

          @jimcavoli Thanks, that's fixed it 🙂

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