Web request vuejs
-
Hello everyone,
I created a web interface and need to be able to send request to Duet with it.
I use vuejs with axios, but whenever I try to send request, it fail (no response code).Is there some CORS requirement ? A problem with Axios ?
P.S. : not sure about the category
-
@Matthieu Hey Matthieu,
I am doing something similar, I am running NodeJs frontend on the RPI and then I use the PythonApi from @wilriker https://github.com/Duet3D/DSF-APIs
in a FLASK based (Python) backend to communicate with the Duet.Would this be a way that would work for you?
-
Starting from software version 3.2 you must add
M586 C"*"
or similar to your config.g if you are using a local dev setup and want to connect to the Duet from there. Btw good luck with Axios, I replaced that dependency in DWC2 a while back because it had too many glitches.