WebGL RSTP CORS Policy in google chrome

Hi everyone,

I would like to ask for help in fixing this particular issue of mine, I have been trying to live stream footage from a camera in the webGL build using RTSP, here’s a screenshot of the error in google chrome.

4994009--487757--error.png

I have been trying to find ways around this issue, the most notable one is adding access control allow origin in the webconfig, but same error still popped up. Here is the screenshot of the webconfig file. Other searches recommend adding lines 10-13 in the screenshot below, unfortunately, that didn’t help either.

Further google searches recommend me to host my video on a website then use my webGL application to take it from that other website, but I can’t even host the video originally with the RTSP url either.

Does anyone have a solution or workaround for this issue?

Edit: I am using Universal Media Player from the Unity Asset Store to live stream the video (if this information is any important).

Update: Tried some google extensions to resolve the CORS policy issue, I tried 2 different ones.
Here are the links to the chrome web store,

Does anyone have a solution to this? Or did I do something wrong in the webconfig text file?

I would recommend opening a Chromium bug tracker item asking about how RTSP video should be streamed across domains. The RTSP standard (found at RFC 7826 - Real-Time Streaming Protocol Version 2.0 ) does not mention CORS at all. To my understanding it should have a statement about CORS negotiation, so I am not sure how Chrome intends to behave when RTSP is coming from another domain.

Do other browsers also fail with a CORS restriction?

Yeah I am still confused as well, I spent a lot time searching for an answer, I thought it was an issue with RTSP, but like you mentioned, I found no links between RTSP and CORS, other browsers also fail with the same error too, tried it on firefox, internet explorer edge.

CORS is a security mechanism, it allows a web page from one domain to access a resource with a different domain. I have a problem to enable CORS. after rectifying all the settings related to this but I am unable to fix this problem also checked Facebook to get better information.