How to fix getImageData() error The canvas has been tainted by cross-origin data?
As others have said you are “tainting” the canvas by loading from a cross origins domain. https://developer.mozilla.org/en-US/docs/HTML/CORS_Enabled_Image However, you may be able to prevent this by simply setting: img.crossOrigin = “Anonymous”; This only works if the remote server sets the following header appropriately: Access-Control-Allow-Origin “*” The Dropbox file chooser when using the “direct link” option … Read more