Configure Access-Control-Allow-Origin response header for call to Wisenet WAVE server
CompletedI am writing a JavaScript web application to stream cameras from a Wisenet WAVE v5.1 server. I am using cookie-based auth. The auth succeeds, and I am able to make an API call to get the list of cameras. When the successful call to get the list of cameras succeeds, the response includes the header `access-control-allow-origin: localhost:4200` (which is the location of the dev server hosting my web app). However, when trying to make an HTTP call to stream a camera using HTTP streaming via the endpoint /media/{deviceId}.mpjpeg, a CORS error is encountered. The response includes the header `access-control-allow-origin: *`, which does not allow credentials to be used. Is there a way to configure the Wisenet WAVE server to allow specific domains so those domains can be listed in each response's `access-control-allow-origin` header?
Please sign in to leave a comment.
Comments
1 comment