Use a proxy to support CORS content in html2canvas
masterBy default, html2canvas cannot bypass browser content security policies. If you attempt to draw images from a different origin (domain) onto the canvas, the canvas becomes "tainted," which prevents you from reading its data (e.g., via toDataURL).
To load cross-origin images and avoid canvas tainting, you must use a proxy to fetch the images on behalf of your application. This allows the images to be served from the same origin as your page, satisfying CORS requirements.