A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
CORS Policy Issue - different at electron and remote Chrome Browser
-
Hi,
I have recently integrated the module octomirror-module. This module accesses the API of octoprint, a controller for 3D printers, and displays the status of the same.But now no data is displayed on the mirror in the module.
An analysis on the MagicMirror browser showed the following error
Access to XMLHttpRequest at 'http://192.168.178.157:5000/api/files' 0.0.0.0/:1 from origin 'http://0.0.0.8080' has been blocked by CORS policy. The request client is not a secure context and the resource is in more -private address space 'private'.
However, when I call MagicMirror remotely with the Chrome browser, the module data is displayed correctly.
I’m not a specialist, but it seems that the MagicMirror browser makes the difference here.
Is there any way to fix this?
Many greetings
Sepp
-
you can try the ip-address of the pi in
config.js
asaddress:
instead of"0.0.0.0"
. -
@karsten13 wow, thank you a lot. it works now. That was easy …