Home  >  Q&A  >  body text

Network error: net::ERR_BLOCKED_BY_CLIENT and 403 error mongodb

I have the code for a React website that I pulled from git on Windows to my Mac. All my code was working fine before but now when I run the site I can't even load it and get the following error. The page first obtains the backend mongoDB through the api. I can access the database correctly as all my functions work when I test the backend using Postman. The problem occurs when my website tries to get the data. Does anyone know what could be causing this issue? I have the proxy set to localhost and my backend is also running in the client's package.json file.

P粉041881924P粉041881924373 days ago655

reply all(1)I'll reply

  • P粉574268989

    P粉5742689892023-09-14 18:09:18

    I'm not sure what happened, but I removed the cors from the backend and put it back and now the frontend is connecting to the backend.

    reply
    0
  • Cancelreply