app.use(function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "X-Requested-With");
next();
});
function(e){
e.preventDefault();
sendMyRequerst();
setTimeout(function(){
form.submit();
},0);
...
}