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.
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.