Using npm:
To allow cross-origin requests install ‘cors’:
npm i cors
Add this in the server-side:
let cors = require("cors");
app.use(cors());
Using npm:
To allow cross-origin requests install ‘cors’:
npm i cors
Add this in the server-side:
let cors = require("cors");
app.use(cors());