bypassing the "Access-Control-Allow-Origin" error when accessing your Node JS app locally.
Just paste this code in your app.js:
app.use(function(req, res, next) {
res.header('Access-Control-Allow-Origin', "*");
res.header('Access-Control-Allow-Methods','GET,PUT,POST,DELETE');
res.header('Access-Control-Allow-Headers', 'Content-Type');
next();
})