var img = new fabric.Image(htmlVideoElement)
of fabricjs object. canvas.setBackgroundImage(img, ()=>{ canvas.renderAll() }, {crossOrigin: 'anonymous'})
crossOrigin
tag at all place still error is occure in mac safari browser.operation is insecure
and this error is raised when I try to make image from canvas using canvas.toDataURL()
Is there any solution or suggestion that can help me to set video into canvas canvas background with cross domain url.
After Brain smashing , I found Exact source of issue. It's not cross origin issue. it's issue of image url.
I was set pixabay Stock Video Url. Now In short, pixabay video url is not actual url of video location. when I paste that url into browser, it was redirect me on another url and display video in browser. so I got issue that Url that i used before is one king of API URL. and I was set into video Source so issue was generate.
Now I send xmlHttpRequest() on that pixabay Image Url and get original video location url and then I set it to canvas background and It's working.