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
  • 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 | Demo | Docs | Install
  1. Cloudron Forum
  2. N8N
  3. Bug: CORS error

Bug: CORS error

Scheduled Pinned Locked Moved Solved N8N
26 Posts 4 Posters 2.6k Views 4 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.
    • martinkbsM martinkbs

      @shrey

      For that use case, you might want to use a webhook router such as Hookdeck or Convoy.

      As you can see below, the process works without errors:

      s21.jpg
      s22.jpg
      s23.jpg
      s24.jpg

      S Offline
      S Offline
      shrey
      wrote on last edited by shrey
      #21

      @martinkbs Sure. Thanks for the nice suggestions.

      Nevertheless, having to use another tool, just for this, sort of defeats using a broad-range tool like n8n.

      nebulonN 1 Reply Last reply
      1
      • S shrey

        @martinkbs Sure. Thanks for the nice suggestions.

        Nevertheless, having to use another tool, just for this, sort of defeats using a broad-range tool like n8n.

        nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #22

        @shrey thanks for raising this also in the n8n forum. Our perspective is usually to add features to the platform if it is useful for multiple apps and use-cases, to justify building it and also maintaining it outside an app itself. So far this just wasn't an issue otherwise, so lets see how interest in that develops.

        I will mark this as closed/solved as further discussion should happen as a feature request to push this forward.

        S 1 Reply Last reply
        0
        • nebulonN nebulon has marked this topic as solved on
        • S shrey

          @nebulon

          @nebulon said in Bug: CORS error:

          Seems to me the correct way as suggested is to set the header from the n8n webhook node itself, instead of reverse proxy wide: https://community.n8n.io/t/cors-error/2139/6

          This doesn't really work anymore, as it doesn't apply to Preflight requests, if i'm not wrong.

          @nebulon said in Bug: CORS error:

          As Girish mentioned, you can put that header in the nginx configs to get a temporary solution.

          I guess will have to do that.

          1. Can it be expected to do this natively, in Cloudron, in the near-future?
          2. Also, Girish mentioned that this fix is not persistent. What exactly does that imply?
          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #23

          @shrey said in Bug: CORS error:

          I guess will have to do that.

          Can it be expected to do this natively, in Cloudron, in the near-future?

          Yes, can you open a feature request thread. We can priorotize based on interest and collect use cases.

          Also, Girish mentioned that this fix is not persistent. What exactly does that imply?

          Some releases rewrite nginx config which will result in custom changes getting lost. Unfortunately, till then you have to manually track your custom changes somehow .

          1 Reply Last reply
          1
          • nebulonN nebulon

            @shrey thanks for raising this also in the n8n forum. Our perspective is usually to add features to the platform if it is useful for multiple apps and use-cases, to justify building it and also maintaining it outside an app itself. So far this just wasn't an issue otherwise, so lets see how interest in that develops.

            I will mark this as closed/solved as further discussion should happen as a feature request to push this forward.

            S Offline
            S Offline
            shrey
            wrote on last edited by
            #24

            @nebulon Sure, will raise the Feature Request.

            Does a Feature Request also need to be raised for modifying the docs, to mention this caveat in the n8n section?

            girishG 1 Reply Last reply
            1
            • S shrey

              @nebulon Sure, will raise the Feature Request.

              Does a Feature Request also need to be raised for modifying the docs, to mention this caveat in the n8n section?

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #25

              @shrey one is fine 🙂 I will update the docs with instructions on how to add CORS as a workaround.

              S 1 Reply Last reply
              1
              • S shrey referenced this topic on
              • girishG girish

                @shrey one is fine 🙂 I will update the docs with instructions on how to add CORS as a workaround.

                S Offline
                S Offline
                shrey
                wrote on last edited by
                #26

                @girish https://forum.cloudron.io/topic/9021/capability-to-tweak-reverse-proxy-config-of-an-app

                1 Reply Last reply
                1
                • G GeHo referenced this topic on
                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