Take the 2-minute tour ×  I try to learn Express/NodeJS, I work
with c9 ide. To use passport framework for authentication, I try
to implement a very simple login form, but when I try to send my
login informations to my server, he receive the data like this :
{ '{"username":"login","password":"pwd"}': '' }  Instead of the
data I log before send :  OBJECT {username: "login", password:
"pwd"}  And JSLint said to me it's a valid JSON, why it's send
as a key of json object's attribute?  This is my Express server
:  var application_root = __dirname, express =
require("express"), path = require("path"), mongoose =
require('mongoose');  var app = express();
mongoose.connect('mongodb://' + process.env.IP + '/database');
app.configure(function () {      var allowCrossDomain =
function(req, res, next) {         res.header("Access-Control-
Allow-Methods", "GET,PUT,POST,DELETE,OPTIONS");
res.header("Access-Control-Allow-Headers", "Content-Type,
Authorization, X-Requested-With");          if ('OPTIONS' ==
req.metho