I am having a real hard time standing up bidirectional data transfer from a html page to my node.js application and then back to the html page.
I\'m pretty sure I\'m
In my case adding this to the app.js works.
app.js
app.use(function(req, res, next) { res.header("Access-Control-Allow-Origin", "*"); res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept"); next(); });
https://enable-cors.org/server_expressjs.html