skip to Main Content

Uploading single File mongoDb

When I'm making multiple upload it's working fine, but when I'm uploading single file it doesn't work. it says TypeError: req.body.file.map is not a function I don't know what's happening here. is it because I map already the req.body? exports.create…

VIEW QUESTION

Mongodb – Why do I have the CORS policy error in my browser? CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource

I have installed cors via npm and used the app.use(cors());middleware, but it is not solving my issue. I am running my frontend React App on Port localhost:3000 Access to XMLHttpRequest at 'http://localhost:3087/authenticate-token' from origin 'http://localhost:3000' has been blocked by CORS…

VIEW QUESTION
Back To Top
Search