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
Hello, firstly, thank you for your work on this project! I found this project somewhat randomly, searching on Github, so please bear with me.
I'm running into an issue when I started serving my images through S3, that hopefully has an easy fix.
Uncaught (in promise) DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.
at parseStereo (https://cdn.skypack.dev/-/[email protected]/dist=es2019,mode=imports/optimized/stereo-img.js:84:128)
at async HTMLElement.parse (https://cdn.skypack.dev/-/[email protected]/dist=es2019,mode=imports/optimized/stereo-img.js:220:25)
at async HTMLElement.parseImageAndInitialize3DScene (https://cdn.skypack.dev/-/[email protected]/dist=es2019,mode=imports/optimized/stereo-img.js:275:5)
at async HTMLElement.init (https://cdn.skypack.dev/-/[email protected]/dist=es2019,mode=imports/optimized/stereo-img.js:292:5)
Hello, firstly, thank you for your work on this project! I found this project somewhat randomly, searching on Github, so please bear with me.
I'm running into an issue when I started serving my images through S3, that hopefully has an easy fix.
I poked around a little bit, and apparently you can set an option to allow anonymous cross-origin on the canvas image: https://stackoverflow.com/questions/22097747/how-to-fix-getimagedata-error-the-canvas-has-been-tainted-by-cross-origin-data
Setting the headers as outlined in the answer there is easy to do on my end.
Perhaps there are alternative solutions as well?
Thanks for taking a look.
The text was updated successfully, but these errors were encountered: