I have the folowing code :
$("#btn_trans").click(function(){
var canvasData = c.toDataURL("image/png");
console.log("canvasData :");
var ajax = new XMLHttpRequest();
ajax.open("POST",'../rr.php',false);
ajax.setRequestHeader('Content-Type', 'application/upload');
ajax.send(canvasData );
});
the probleme is the navigator says that the line: var canvasData = c.toDataURL("image/png"); is insecure operation I did'not found what wrong with my code exactly