1

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

Nejmeddine Jammeli
  • 1,011
  • 9
  • 17

0 Answers0