From d318b413f877ab79109792b3c1b201080de399f7 Mon Sep 17 00:00:00 2001 From: Mark Williams Date: Wed, 22 Jan 2025 10:17:57 +0000 Subject: [PATCH] LIMS-1621: Support webcam auth --- api/src/Page/Image.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/Page/Image.php b/api/src/Page/Image.php index e75918e1d..37729fdc5 100644 --- a/api/src/Page/Image.php +++ b/api/src/Page/Image.php @@ -331,6 +331,7 @@ function _forward_webcam() { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://'.$img.'/axis-cgi/mjpg/video.cgi?fps=5&resolution=CIF&resolution=480x270'); curl_setopt($ch, CURLOPT_HEADER, 0); + curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY); $im = curl_exec($ch); curl_close($ch); }