Canvas errors & CORS All In One
Uncaught (in promise) DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement':
Tainted canvases may not be exported
.
solution
<img crossorigin="anonymous" data-src="" src="" />
demos
https://renmingliang.github.io/vue-lottery/#/lottery
https://github.com/renmingliang/vue-lottery