Ionic 3 , videojs-panorama not supporting in Android getting error DOMException: Failed to execute 'texImage2D' on

后端 未结 1 1098
遇见更好的自我
遇见更好的自我 2021-01-28 02:33

I am getting this error when using videos-panorama

Dom Exception: Failed to execute \'texImage2D\' on \'WebGLRenderingContext\': The video element contains cross-origin

1条回答
  •  心在旅途
    2021-01-28 03:09

    The concept of "CORS" is explained here: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

    There is an earlier thread here on Stack-Overflow discussing this here: enable cors in .htaccess

    To boil it all down, most webservers are happy, if you just supply them with a two-line file named ".htaccess", containing these 2 lines:

    Header add Access-Control-Allow-Origin "*"

    Header add Access-Control-Allow-Methods: "GET,POST,OPTIONS,DELETE,PUT"

    0 讨论(0)
提交回复
热议问题