Easily configure a performant, secure, and stable NGINX server.Learn More
How can the frontend call the backend API?
I set up an Nginx server in front of my Vue frontend and my Node backend. Nginx redirects to requets to Vue and the browser shows the page. But when I want to log in (call the backend API), nothing happens. I assume that the backend is not reachable. I configured the axios backend call like so http://localhost:8080/api“ for the backend. Do I assume it correctly that "behind” the reverse proxy, the servers can communicate via localhost with eachother?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×