- Install
cors
library:npm i cors
- Add the following code:
const express = require("express")
var cors = require("cors")
const app = express()
app.use(cors())
- Check out how to configure it in their docs.
cors
library: npm i cors
const express = require("express")
var cors = require("cors")
const app = express()
app.use(cors())