For the backend Project you have to add the below 2 lins to the server.js file, this to fix accesss control allow origin
https://github.com/mkhader88/mwa-php
app.use(function(req, res, next) {
console.log(req.method, req.url);
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
res.header('Access-Control-Allow-Methods', 'PUT, GET, POST, DELETE, OPTIONS');
next();
});