Read the statement by Michael Teeuw here.
CORS, MotionEye & MMM-Remote-Control
-
@sdetweil Hello Sam;
In playing with the address, I have discovered that MotionEye does seem to display an image using
address: "192.168.1.200",
(the direct URL of the Magic Mirror, and running MotionEye). However, Motion Webhooks show the image then won’t hide anymore. They just stay onscreen.Currently, I have my config set as so:
address: "0.0.0.0",
…
ipWhitelist: ["::1", "::ffff:192.168.1.200", "::ffff:192.168.1.1/120", "127.0.0.1", "::ffff:127.0.0.1", "::ffff:192.168.1.42", "::ffff:192.168.1.23", "::ffff:192.168.1.69", "::ffff:192.168.1.100"],
trying to cover all bases here. The Mirror still shows a broken image icon, but if I log into the web portal of the mirror, that show’s the camera feed no problem. How can I fix this??>
-
I did notice that MotionEye and the Mirror are both listening on “0.0.0.0”. Is that normal? Could that be my conflict? Can i set MotionEye to listen on another ip, if so, which one???
-
@SdeGeata turn off the ipWhitelist til you get it all working. then play with the filter
-
@SdeGeata the cors check is at the server.
they check the IP address/name of the client making the request.
localhost is inside the same system
192.168 or 10. or 172. are non routablebip addresses, so sekfvcontainedvsyatens like localhost0.0.0.0 is undetermined… and is mostly rejected .
as I said, it’s not a valid IP address, so it should never be sent to the other side as part of the request
-
I turned off the ipWhitelist, I was unable to connect MMM-Remote-Control or send any command line to the MM.
-
@sdetweil said in CORS, MotionEye & MMM-Remote-Control:
they check the IP address/name of the client making the request.
localhost is inside the same system
192.168 or 10. or 172. are non routablebip addresses, so sekfvcontainedvsyatens like localhost
0.0.0.0 is undetermined… and is mostly rejected .
as I said, it’s not a valid IP address, so it should never be sent to the other side as part of the requestIts funny though, it is only since MM v.2.17 I have been having issues with MMM_MotionEye and the
address: "0.0.0.0"
issue. It was fine before. I don’t know what changed other than CORS. -
@SdeGeata we updated libraries we use, so it could be anywhere.
-
@sdetweil So what would you suggest? Is there another address I can have MotionEye listen on while leaving the Magic Mirror address on 0.0.0.0? I see an option to configure that in MotionEye.conf. I just don’t know what to set it to.
-
-
Its funny though, it is only since MM v.2.17 I have been having issues with MMM_MotionEye
MM is an electron app and electron uses chromium as browser. All browsers are more and more restrictive concerning cors when releasing new versions.
I tested MMM-Motioneye with my setup and was not able to get it running.
Another approach is to use MMM-iFrame instead which worked on my side.