I searched all over the google but none of the answers were working :(. I want to generate a pdf with some content on my page. I am using html2canvas and jspdf to acheive that, I am using s3 to store the images, added cors configuration to s3 but still I keep on getting the error:
Uncaught (in promise) DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.
Html2canvas docs - https://html2canvas.hertzen.com/configuration
I tried adding crossOrigin="anonymous" but it still didn't help me to get over this error
Here is my jsfiddle
