[Vuejs]-Issue with Vue.js devServer.proxy

0👍

You should always use the url with a leading slash e.g. /api/base/verified See this question. So I guess in your case that 2 components may use in different path.

The reason it’s different for different environments is that the proxy is working only in development server that’s why they called devServer.

I’m not sure why you got that error it seems there must be another config that can go to port 5000 such as proxy in nginx but ERR_CONNECTION_REFUSED usually means there is no server at that endpoint.

Leave a comment