Answer the question
In order to leave comments, you need to log in
How to run front and back on the same address?
When I run backend on localhost:5000 and fron on vue on localhost:8080 then everything works. But how to make the front and back be on localhost:8080?
Answer the question
In order to leave comments, you need to log in
If you need it for development, then you don't need it.)
Use webpack devserver (out of the box in vue-cli ) and configure the proxy before the backend. For the front, everything will be "on one server" and no troubles are needed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question