Been trying to debug an issue with h2c in IEornthe last 2 days without success. Maybe someone has come across this problem and can help.
The problem:
I've searched this forum and trawled the Internet for someone having a similar issue - no luck. Has anyone had a similar issue?
My only options now seem to be to set up a proxy solution or try and debug H2C. Want to put the problem to this forum before I start with a proxy or debugging. To be honest, I don't think I know enough to debug h2c. Any help or pointers will be much appreciated.
Many thanks
Dave
Here is a simple illustration at jsBin. The canvas can be appended to a div in all browsers so looks like the canvas is being rendered. However .toDataURL doesn't work in IE11 - works in all other non-IE browsers.
Most helpful comment
It is pretty much related to the CORS.
Try adding
allowCORS : true
when you call html2canvas.The website should also be allowing cross-origin requests for the images to be shown successfully.
@imalhasaranga If the canvas is generated and appended to the DOM, html2Canvas has done its job, the problem should be somewhere else.