I have this as configuration of my Express server
app.use(app.router); app.use(express.cookieParser()); app.use(express.session({ secret: \"keyboard cat\" }
If you are using some external tool to make the request, make sure to add the header:
Content-Type: application/json