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. Surfer
  3. Surfer and CORS

Surfer and CORS

Scheduled Pinned Locked Moved Solved Surfer
11 Posts 5 Posters 3.4k 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.
  • timconsidineT Offline
    timconsidineT Offline
    timconsidine
    App Dev
    wrote on last edited by
    #1

    Looked in docs but don't see the info.
    Where do I enable CORS for a Surfer hosted page ?
    In the hosted page headers ?
    Any specs / guidance ?

    Can't see anything in admin settings for the app.

    Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

    1 Reply Last reply
    0
    • timconsidineT timconsidine marked this topic as a question on
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      AFAIK, CORS is already enabled for all domains. Why do you think it's not? @nebulon can confirm.

      1 Reply Last reply
      0
      • timconsidineT Offline
        timconsidineT Offline
        timconsidine
        App Dev
        wrote on last edited by timconsidine
        #3

        The page I am hosting in Surfer generates errors in browser dev tools.
        Oh, doh !
        Is it the linked page site that needs CORS enabling, not Surfer ?

        Cross-Origin Request Blocked: The Same Origin Policy disallows 
        reading the remote resource at 
        https://api-service.lowcoder.domain.tld/api/v1/applications/undefined/view.
        (Reason: CORS request did not succeed). Status code: (null).
        

        Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

        girishG 1 Reply Last reply
        0
        • timconsidineT timconsidine

          The page I am hosting in Surfer generates errors in browser dev tools.
          Oh, doh !
          Is it the linked page site that needs CORS enabling, not Surfer ?

          Cross-Origin Request Blocked: The Same Origin Policy disallows 
          reading the remote resource at 
          https://api-service.lowcoder.domain.tld/api/v1/applications/undefined/view.
          (Reason: CORS request did not succeed). Status code: (null).
          
          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @timconsidine that's correct. it's the linked page that needs CORS configuration, not surfer.

          1 Reply Last reply
          0
          • timconsidineT Offline
            timconsidineT Offline
            timconsidine
            App Dev
            wrote on last edited by
            #5

            Thank you and sorry for disturbing you.
            Maybe I need to go lie down in a dark room 😄

            Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

            scookeS 1 Reply Last reply
            1
            • timconsidineT timconsidine has marked this topic as solved on
            • timconsidineT timconsidine

              Thank you and sorry for disturbing you.
              Maybe I need to go lie down in a dark room 😄

              scookeS Offline
              scookeS Offline
              scooke
              wrote on last edited by
              #6

              @timconsidine Maybe bring a Coors in with you.

              A life lived in fear is a life half-lived

              timconsidineT 1 Reply Last reply
              1
              • scookeS scooke

                @timconsidine Maybe bring a Coors in with you.

                timconsidineT Offline
                timconsidineT Offline
                timconsidine
                App Dev
                wrote on last edited by
                #7

                @scooke said in Surfer and CORS:

                @timconsidine Maybe bring a Coors in with you.

                Great idea. Why didn’t I think of that 👍

                Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

                1 Reply Last reply
                1
                • luckowL Offline
                  luckowL Offline
                  luckow
                  translator
                  wrote on last edited by
                  #8

                  Thanks for teaching me something new 🙂 I've never heard of Coors (and never drank one. Is it good?).
                  https://www.molsoncoors.com/brands/our-brands/coors-original?region=931

                  Pronouns: he/him | Primary language: German

                  timconsidineT 1 Reply Last reply
                  1
                  • luckowL luckow

                    Thanks for teaching me something new 🙂 I've never heard of Coors (and never drank one. Is it good?).
                    https://www.molsoncoors.com/brands/our-brands/coors-original?region=931

                    timconsidineT Offline
                    timconsidineT Offline
                    timconsidine
                    App Dev
                    wrote on last edited by
                    #9

                    @luckow perfect ice-cold on a hot day !
                    For those who love a great weiss-bier, it is not strong taste.
                    Where have all the good weiss bier brands gone ?
                    I don't see them so much these days.

                    Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

                    1 Reply Last reply
                    2
                    • necrevistonnezrN Offline
                      necrevistonnezrN Offline
                      necrevistonnezr
                      wrote on last edited by
                      #10

                      I still have this road bike - Coors had sponsored a US road bike team and Serotta made beautiful bicycles back then….
                      https://www.rennrad-news.de/news/renner-der-woche-serotta-team-coors-light-stahlklassiker/ (German, but the pictures speak for themselves)

                      scookeS 1 Reply Last reply
                      2
                      • necrevistonnezrN necrevistonnezr

                        I still have this road bike - Coors had sponsored a US road bike team and Serotta made beautiful bicycles back then….
                        https://www.rennrad-news.de/news/renner-der-woche-serotta-team-coors-light-stahlklassiker/ (German, but the pictures speak for themselves)

                        scookeS Offline
                        scookeS Offline
                        scooke
                        wrote on last edited by
                        #11

                        @necrevistonnezr THAT is pretty cool. I need to hit those hills more.

                        A life lived in fear is a life half-lived

                        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