Cors
No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
Origin ‘http://localhost:8080’ Is therefore not allowed access.
Cors
$ cd /project/server/
$ npm install --save cors
$ vi app.js
const cors = require('cors');
app.use(cors());
– or assign host
app.use(cors({ origin: ‘http://localhost:8080’ }));