HI, I am trying to make a POST request using Ajax in sencha touch. my problem is when I am sending request my server accepts it as OPTIONS request. my code is :

var post_json = { usrname: username, password: password } ;

Ext.Ajax.request({
url: 'http://localhost:3000/',
method: "POST",
params: {
user_session: post_json
},
success: function(){
alert("sucessful");

},
failure: function(){
alert("fail");
}

});

How can i solve this problem?