Open smketterer opened 2 years ago
Thanks for reporting. I hadn't try to load an image from a different domain. It's be great to support that since that something regular support.
I will take a closer look, but it seems the server needs to allow CORS and the code might need to be updated with image.crossOrigin = 'anonymous';
I reverted the change because it introduced an issue I see https://github.com/steren/stereo-img/issues/15
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.