Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Potential CORS problems

    Scheduled Pinned Locked Moved
    DueUI
    3
    5
    602
    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.
    • hauschkaundefined
      hauschka
      last edited by

      hey @gtj0

      I wanted to know how you're handling cross-origin (CORS) problems when using the hosted version of DueUI (dueui.org) to control a printer.

      Are you running into any errors?

      Could you help me understand how you're handling this on the DueUI side?

      Thanks,
      -h

      1 Reply Last reply Reply Quote 0
      • gtj0undefined
        gtj0
        last edited by

        The dueui.org server, the Duets and the DSF all send Access-Control-Allow-Origin: * headers and DueUI uses jsonp to retrieve it's config. I haven't seen any errors whatsoever. Are you having issues?

        1 Reply Last reply Reply Quote 0
        • chrishammundefined
          chrishamm administrators
          last edited by

          @gtj0 Not quite right, CORS headers are no longer provided by DuetWebServer unless you enable the corresponding option.

          To do so, change UseCors in /opt/dsf/conf/http.json from false to true and restart DWS via sudo systemctl restart duetwebserver.

          Duet software engineer

          gtj0undefined 1 Reply Last reply Reply Quote 0
          • gtj0undefined
            gtj0 @chrishamm
            last edited by

            @chrishamm Ah. I hadn't been keeping up. Good to know. Thanks!

            1 Reply Last reply Reply Quote 0
            • hauschkaundefined
              hauschka
              last edited by

              Awesome, thank you for your replies :))

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA