Is there a way to patch JS so it would be able to work with images which is served from different domain? The page im working on serves images from CDN with dedicated domain name and JS produces these errors.
Unable to get image data from canvas because the canvas has been tainted by cross-origin data. background-check.min.js:5
Uncaught SecurityError: An attempt was made to break through the security policy of the user agent.
Im able to add Access-Control-Allow-Origin to images served but dont know how to patch JS for it to post Origin header.
Is there a way to patch JS so it would be able to work with images which is served from different domain? The page im working on serves images from CDN with dedicated domain name and JS produces these errors.
Unable to get image data from canvas because the canvas has been tainted by cross-origin data. background-check.min.js:5 Uncaught SecurityError: An attempt was made to break through the security policy of the user agent.
Im able to add Access-Control-Allow-Origin to images served but dont know how to patch JS for it to post Origin header.