- Home /
Why is my WebGl build throwing a CORS data error?
I am trying to use the video player component in a WebGL build on my wordpress website to play a video from a Vimeo direct link. It works in the editor and I can play the video in an html video element from my domain without issue leading me to suspect this is a Unity 2018.2.11f1 problem. I am running into the error shown below when I launch the build in chrome, or other browsers, which automatically starts a video.
Is anyone familiar with this kind of error? And is there any way for me to fix it and play the video without issue?
exception thrown: SecurityError: Failed to execute 'texSubImage2D' on 'WebGLRenderingContext': The video element contains cross-origin data, and may not be loaded.,Error: Failed to execute 'texSubImage2D' on 'WebGLRenderingContext': The video element contains cross-origin data, and may not be loaded.
Your answer
