You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got this error in Chrome for image from remote server
Uncaught (in promise) DOMException: Failed to execute 'getImageData' on 'OffscreenCanvasRenderingContext2D': The canvas has been tainted by cross-origin data.
at t2 (http://localhost:3000/node_modules/.vite/deps/@undecaf_barcode-detector-polyfill.js?v=0927827e:104:41)
The text was updated successfully, but these errors were encountered:
You might try <img crossorigin="anonymous"> in the markup (as in the example)
or image.setAttribute('crossOrigin', 'anonymous') on the Image object before loading the image from the remote server.
I probably poorly worded bug report. The problem is that this promise rejection isn't handled. I would expect detect function to reject with this error. I can make a PR to fix (I didn't check code, but it should be easy to find)
I got this error in Chrome for image from remote server
The text was updated successfully, but these errors were encountered: