Video not playing in WebGL build

Hi,
I tried all from this threat https://forum.unity.com/threads/videoplayer-webgl-url-not-working.467391/#post-3392808.

but, my problem is video not playing in my WebGL build showing a blank white screen only, but the audio is playing.
this is my Script,

// Update is called once per frame
void Update()
{
    if (Input.GetMouseButton(0))
        AssignURL();
}

void AssignURL()
{
    if (string.IsNullOrEmpty(url))
    {
        url = "http://www.quirksmode.org/html5/videos/big_buck_bunny.mp4";
        //url = Application.streamingAssetsPath + "/" + fileName;
    }

    videoPlayer.url = url;
    videoPlayer.Play();

}

In editor everything is working, kindly help me out what’s the problem.

I also tried to build using WebGL1.0 and WebGL2.0 api’s. But the problem is same…

Thanks in Advance.

Hey @bhuvanesh22,

I just encountered a similar issue and after inspecting the application running in the browser I get the following error:

Access to video at “Name of video” from origin “Domain of video” has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

I solved it by uploading both video and web build to the same domain : )

Otherwise Unity won’t be able to load the video based on the access rights