skip to Main Content

CORS ISSUE trying to send data to my server – Reactjs

"Access to XMLHttpRequest at 'http://localhost:3000/campgrounds/6411f03e718f68104cac045a' (redirected from 'http://localhost:5000/campgrounds') from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource." This is my code on…

VIEW QUESTION

Mongodb – This Serverless Function has timed out

I create a chat app using mern stack. After deploy server in vercel. but it is not work. there is a error in vercel log. Legacy server listening... MongoServerError: bad auth : authentication failed at Connection.onMessage (/var/task/node_modules/mongoose/node_modules/mongodb/lib/cmap/connection.js:207:30) at MessageStream.<anonymous> (/var/task/node_modules/mongoose/node_modules/mongodb/lib/cmap/connection.js:60:60)…

VIEW QUESTION
Back To Top
Search