Reolink updates Learn More
Meet Reolink at IFA 2024! Learn More
Reolink Q&A Learn More
Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
@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.
@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
@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 atMY_CAMERA_URL.(Reason: CORS header Access-Control-Allow-Origin missing). Status code: 200.How can I configure the camera CORS?
Welcome Back!
Hi there! Join the Commnunity to get all the latest news, tips and more!