SyntaxFix
Write A Post
Hire A Developer
Questions
Just use the crossOrigin attribute and pass 'anonymous' as the second parameter
crossOrigin
'anonymous'
var img = new Image(); img.setAttribute('crossOrigin', 'anonymous'); img.src = url;