• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    hauschka
    last edited by 7 Nov 2020, 11:51

    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
    • undefined
      gtj0
      last edited by 7 Nov 2020, 14:37

      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
      • undefined
        chrishamm administrators
        last edited by 7 Nov 2020, 14:40

        @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

        undefined 1 Reply Last reply 7 Nov 2020, 15:34 Reply Quote 0
        • undefined
          gtj0 @chrishamm
          last edited by 7 Nov 2020, 15:34

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

          1 Reply Last reply Reply Quote 0
          • undefined
            hauschka
            last edited by 7 Nov 2020, 17:06

            Awesome, thank you for your replies :))

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