i am trying to save data in mongodb through post method and using mongodb atala with node.js but it keeps giving me an error, i provided correct connection string and correc
Did you have this line in your index.js app.use(cors())?
app.use(cors())
Try to delete this line and delete everything that involves cors.
If this don't work try the Mehdi Berra's solution