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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. CryptPad
  3. Cannot access documents since last update - CryptPad is failing to load OnlyOffice

Cannot access documents since last update - CryptPad is failing to load OnlyOffice

Scheduled Pinned Locked Moved CryptPad
nginxcsphsts
14 Posts 5 Posters 71 Views 5 Watching
  • 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.
  • SansGuidonS SansGuidon

    Hi
    Since last update I face "Script Error: See browser console for details" when trying to open CryptPad documents

    12d3d34f-8793-481b-a855-3a1f8dd2ce6a-image.png

    it seems to have to do with CSP or nginx config and some redirection.

    Browser shows:

    • window.DocsAPI is undefined
    • CSP blocking extensions.js
    • MIME type mismatch (text/html, nosniff)

    Debugging shows that:

    curl -I "https://<my redacted domain>/extensions.js?ver=2026.2.0-1771044916890"
    returns

    HTTP/2 301
    Location: http://<my redacted domain>/extensions.js/?ver=...
    Content-Type: text/html
    

    HTTPS is being redirected to HTTP
    A trailing slash is added to extensions.js/
    Response is HTML instead of JS ?

    Is this a known issue with the CryptPad package or Cloudron’s nginx config handling static assets?
    Let me know if you need full browser console logs in case this cannot be reproduced.

    Thanks!

    jamesJ Offline
    jamesJ Offline
    james
    Staff
    wrote last edited by
    #2

    Hello @sansguidon

    @SansGuidon said in Cannot access documents since last update - CryptPad is failing to load OnlyOffice:

    Since last update

    What update are you referring to?
    A Cloudron update or an app update?

    SansGuidonS 1 Reply Last reply
    0
    • jamesJ james

      Hello @sansguidon

      @SansGuidon said in Cannot access documents since last update - CryptPad is failing to load OnlyOffice:

      Since last update

      What update are you referring to?
      A Cloudron update or an app update?

      SansGuidonS Online
      SansGuidonS Online
      SansGuidon
      wrote last edited by
      #3

      @james said in Cannot access documents since last update - CryptPad is failing to load OnlyOffice:

      Hello @sansguidon

      @SansGuidon said in Cannot access documents since last update - CryptPad is failing to load OnlyOffice:

      Since last update

      What update are you referring to?
      A Cloudron update or an app update?

      Thanks for the answer! In fact here I'm not 100% sure of the when. It has been a few days maybe more than a week I'm not sure as I don't use the app daily and the notifications history for updates in cloudron is not keeping lot of info since v9. But I have read on their GitHub that they made a release few weeks ago. So either it's that either a cloudron update? Difficult to tell. Maybe I could try to rollback to a previous package version?

      About me / Now

      1 Reply Last reply
      0
      • archosA Offline
        archosA Offline
        archos
        translator
        wrote last edited by
        #4

        Hi, we have the same issue. Confirmed on both Firefox and Chrome.
        curl -I shows the root cause:

        GET /extensions.js?ver=2026.2.0-1772167481346
        → 301 redirect to http://<redacted>/extensions.js/?ver=...
        
        Content-Security-Policy: Nastavení stránky zablokovalo provedení skriptu (script-src-elem) na http://<redacted>/extensions.js/?ver=2026.2.0-1772167481346, protože porušuje direktivu „script-src 'self' 'unsafe-eval' 'unsafe-inline' resource: https://<redacted>"
        Zdroj na adrese "https://<redacted>/extensions.js?ver=2026.2.0-1772167481346" byl zablokován kvůli rozdílnému MIME typu ("text/html") (X-Content-Type-Options: nosniff).
        URI zdroje <script> není v tomto dokumentu povolen: „https://<redacted>/extensions.js?ver=2026.2.0-1772167481346".
        Uncaught TypeError: can't access property "DocEditor", window.DocsAPI is undefined
            startOO https://<redacted>/common/onlyoffice/inner.js?ver=2026.2.0-1772167481346:2544
        

        Nginx adds a trailing slash and downgrades HTTPS to HTTP. HSTS catches it and switches back to HTTPS, but the URL is now /extensions.js/ instead of /extensions.js → server returns HTML instead of JS → CSP blocks it → OnlyOffice fails to load.

        1 Reply Last reply
        3
        • jamesJ Offline
          jamesJ Offline
          james
          Staff
          wrote last edited by
          #5

          Hello @sansguidon and @archos

          I reproduced the issue and found a solution.
          An app update will be available soon.

          1 Reply Last reply
          1
          • J joseph marked this topic as a regular topic
          • J Offline
            J Offline
            joseph
            Staff
            wrote last edited by
            #6

            A new package is out that should fix the problem.

            SansGuidonS 1 Reply Last reply
            1
            • archosA Offline
              archosA Offline
              archos
              translator
              wrote last edited by
              #7

              Hi, thanks for the update. The new package seems to fix the issue for new documents, but older documents still fail to open with the same error.

              1 Reply Last reply
              1
              • J joseph

                A new package is out that should fix the problem.

                SansGuidonS Online
                SansGuidonS Online
                SansGuidon
                wrote last edited by
                #8

                @joseph said:

                A new package is out that should fix the problem.

                Thanks everyone ! Did anyone successfully try the update for opening files on its drive? I've only tried on mobile but I hit the same error message in the frontend about a script failing to load.

                About me / Now

                1 Reply Last reply
                0
                • jamesJ Offline
                  jamesJ Offline
                  james
                  Staff
                  wrote last edited by
                  #9

                  Hello @archos and @sansguidon
                  Please ensure this is not a caching issue of your browser.

                  SansGuidonS 1 Reply Last reply
                  0
                  • jamesJ james

                    Hello @archos and @sansguidon
                    Please ensure this is not a caching issue of your browser.

                    SansGuidonS Online
                    SansGuidonS Online
                    SansGuidon
                    wrote last edited by
                    #10

                    @james said:

                    Hello @archos and @sansguidon
                    Please ensure this is not a caching issue of your browser.

                    Thanks for the advice, so after checking in two other browsers I confirm the issue persists independently from caching

                    About me / Now

                    1 Reply Last reply
                    1
                    • jamesJ Offline
                      jamesJ Offline
                      james
                      Staff
                      wrote last edited by
                      #11

                      Hello @sansguidon
                      Thanks for the report.
                      I will have to look into it again.

                      Please share what browser, what browser version and what operating system is used.
                      Also, if any extensions are installed please also list them or confirm that the issue persists in a fresh browser session with no extensions.

                      SansGuidonS 1 Reply Last reply
                      0
                      • archosA Offline
                        archosA Offline
                        archos
                        translator
                        wrote last edited by
                        #12

                        Hi, tested on Firefox 148.0 on Arch Linux and Safari on iOS. Issue persists in a private/incognito window with no extensions. Older documents still fail to open.

                        1 Reply Last reply
                        0
                        • jamesJ james

                          Hello @sansguidon
                          Thanks for the report.
                          I will have to look into it again.

                          Please share what browser, what browser version and what operating system is used.
                          Also, if any extensions are installed please also list them or confirm that the issue persists in a fresh browser session with no extensions.

                          SansGuidonS Online
                          SansGuidonS Online
                          SansGuidon
                          wrote last edited by
                          #13

                          @james said:

                          Hello @sansguidon
                          Thanks for the report.
                          I will have to look into it again.

                          Please share what browser, what browser version and what operating system is used.
                          Also, if any extensions are installed please also list them or confirm that the issue persists in a fresh browser session with no extensions.

                          I've tried from MacOs, Android, Vivaldi, Brave, LibreWolf. Same issue.
                          Would it help to share my logs or data??

                          About me / Now

                          1 Reply Last reply
                          0
                          • nichu42N Online
                            nichu42N Online
                            nichu42
                            wrote last edited by
                            #14

                            I experienced the same last week. I was able to work around the issue by duplicating the file (yes, there is only one file in my drive).

                            Matrix: @nichu42:blueplanet.social

                            1 Reply Last reply
                            0

                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                            With your input, this post could be even better 💗

                            Register Login
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Bookmarks
                            • Search