Why i'm getting cors in GET request to a ip camera

54 views Asked by At

I have been trying to make a GET request from Angular to a Dahua IP camera with the following url, the response should be a snapshot of the camera, but when doing it I always get a CORS problem

http://login:password@cameraIP/cgi-bin/snapshot.cgi

When I put it in the browser it works without problems, it shows me the camera snapshot, all of this is working from localhost. I have also tried several similar versions of that same url, but none of them seem to work.

The camera model is: DH-IPC-HFW1230S1N-0280B-S

Other versions of the same link:

http://cameraIP/cgi-bin/snapshot.cgi?loginuse=[USERNAME]&loginpas=[PASSWORD]
http://cameraIP/cgi-bin/snapshot.cgi?chn=1&u=[USERNAME]&p=[PASSWORD]
0

There are 0 answers