Enable SSH to fix CORS issues for Prusa Link
Hi Everybody,
I recently acquired my first Prusa - a Core One+. Very happy with it so far!
But I want to create a custom web dashboard, relying on the Prusa Link API. However, I face CORS errors:
Access to fetch at 'http://192.168.1.37/api/v1/status' from origin 'http://192.168.1.31' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I found out that I had to allow CORS origin, as discussed here:
https://github.com/prusa3d/Prusa-Link-Web/issues/391
To do so, I have to SSH in the Core One, but it's not possible. So I wanted to enable SSH as described here:
https://cdn.help.prusa3d.com/article/how-to-connect-to-rpi-via-ssh_658030
But the Core One doesn't run on a Raspberry Pi, and I can't find any SD card on the xBuddy card!
How can I do that?
thanks!!
Florent
RE:
You can't do this on a CoreOne. The Core One doesn't run a Unix operating system so you can't run a shell on it.
If you want to create something custom, I would suggest investigating OctoPrint which runs on a RaspberryPi connected to the USB-C serial interface on the printer.
PrusaLink API is baked into the firmware. There is no easy way to configure it without creating a custom firmware image.
RE: Enable SSH to fix CORS issues for Prusa Link
Oh ok that's a bummer; I didn't know that, thanks!
Yeah, going with Octoprint may be an option, but then we "lose" the ability to use the LCD screen which is not ideal.
I've tried to setup a reverse proxy but it fails to authenticate against prusa links for now.
I'll continue my investigations!
Thanks
Florent
RE: Enable SSH to fix CORS issues for Prusa Link
Yeah, going with Octoprint may be an option, but then we "lose" the ability to use the LCD screen which is not ideal.
Octoprint is simply a serial host. It doesn't take over the printer. You won't lose the screen UI, PrusaLink, PrusaConnect. They are still available.