Last updated 2 years ago
Was this helpful?
npm install cors
add this code below const app
const app = express(); var cors = require('cors')
AND app.use() above routing
// setting express function app.use(cors()); //routing const home = require('./routes/homes');