- 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
Msh Sayket -
Sushant Gaurav -
Arshi Saxena -
Aurélie Vache -
Top comments (0)