The following steps are for me for Chrome and Firefox:
html2canvas(document.body, { proxy: "server.js", useCORS: true, onrendered: function(canvas) { document.body.appendChild(canvas); } });
where server.js https://github.com/niklasvh/html2canvas-proxy-nodejs There are other proxies for PHP and Python that I have not tried yet. I canβt publish both, but if you google "html2canvas proxy", you can find others if you need them.
source share