Empty request body with POST using CORS with a node app on OpenShift
问题 I'm creating a simple Node app on OpenShift, using express (I'm just modifying the default example Node app of OpenShift). I want to have CORS support with it: var cors = require('cors'); ... /** * Initialize the server (express) and create the routes and register * the handlers. */ self.initializeServer = function() { self.createRoutes(); self.app = express(); self.app.use(cors()); self.app.use(express.json()); // Add handlers for the app (from the routes). for (var r in self.routes) { self