Closed thematrixdev closed 2 years ago
Please modify as follows.
/var/www/cgi-bin/get_jpeg.cgi
#!/bin/sh
echo "Cache-Control: no-cache"
echo "Content-Type: image/jpeg"
echo "Access-Control-Allow-Origin: *"
echo ""
echo jpeg -n | /usr/bin/nc localhost 4000
I am embedding the camera image onto Home-Assistant. It shows a CORS error:
May you add the header on get_jpeg.cgi page?
Thanks.