I am using rasterizehtml.js plugin to render my html into canvas! I got some issues but managed to fix all of them except the very important one. I am getting problems with toDataUrl(); it shows that it is blocked. I googled a lot. There were some stuff concerning that but i found no solution to my question.
The error is this one: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported