- 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())
For further actions, you may consider blocking this person and/or reporting abuse
Shane Wen -
Juan Garcia -
MartinJ -
Burhanuddin S. Tinwala -
Top comments (0)