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.jsasaddress:instead of"0.0.0.0". -
@karsten13 wow, thank you a lot. it works now. That was easy …
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login