@joseph_1979 the camera does not need to host the application. it only needs to have a way to configure the CORS (Cross-Origin Resource Sharing) header response values that it returns in the HTTP responses. for example, the camera firmware should have a way to configure the returned values of the typical CORS headers: Access-Control-Allow-Origin, Access-Control-Allow-Methods, Access-Control-Allow-Headers, Access-Control-Allow-Credentials, Access-Control-Expose-Headers, etc.
thank you for the support link. I will make this request through that channel.

rui godinho lopes
@rui godinho lopes_709100408737905
Latest posts made by rui godinho lopes
-
RE: Reolink Camera API User Guide_V8 (Updated in April 2023)
-
RE: Reolink Camera API User Guide_V8 (Updated in April 2023)
@joseph_1979 using the web application built-in in the camera firmware works fine in Firefox.
What I want to build is my own web application, where I can directly see the video from the camera (and also invoke the API directly from the web browser). Everything should work as-is if the camera firmware had a way to configure CORS. So what I'm asking is whether that feature is already built-in in the firmware, and how can I configure it? If that feature does not exist, I want to make a plea to have it -
RE: Reolink Camera API User Guide_V8 (Updated in April 2023)
@Reolink-Fiona, Thank you for posting the API Guide!
I'm trying to see the video stream for the first time from the firefox web browser.
Using the mpegts.js video player (see TODO) to load the video stream as:
// see https://
const player = mpegts.createPlayer({
type: 'flv',
isLive: true,
url: 'MY_CAMERA_URL'
});
player.attachMediaElement(document.getElementById("video-stream"));
player.load();
player.play();
Firefox fails with a CORS error:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at
MY_CAMERA_URL.
(Reason: CORS header Access-Control-Allow-Origin missing). Status code: 200.
How can I configure the camera CORS?