// Wide listing a cors to accept a specific domain route const cors = require('cors'); const corsOption = { origin: ['http://localhost:3000'], }; app.use(cors(corsOption));