I have a Node.js server running on http://localhost:3000/, and a React Frontend running on http://localhost:8000/. I am setting up the user authentication feature with JWT. However, when posting the token, it goes to the incorrect localhost address:
http://localhost:8000/api/auth/login
I have managed to modify most parts of the URL, except for the "http://localhost:8000/", which needs to be changed to "http://localhost:3000/". Can someone provide me with guidance on how to achieve this?
Appreciate any help in advance.