I use the follow code to send some additional data,but it seems not work,
myDp = new dataProcessor("<?php echo $dataProcessor_url;?>");
myDp.setTransactionMode({
headers:{
"Accept-Language": "fr-FR"
},
payload:{
"x_id":"mmmml",
"test_data":"woshitiancai"
},
mode:"POST"
}, true);
myDp.setUpdateMode("cell");
myDp.enableDataNames(true);
myDp.init(myGrid);
when I check the header in with chrome develop tool,I can not see any header about “fr-FR” and not see my custom data about ‘x_id’ and ‘test_data’. I have tried many times but could not find the solution.