create-react-app2.0 is different from the original when setting cross-domain proxy. This is a problem about setting cross-domain proxy on stackoverflow on create-react-app2.0
. I installed this and configured the agent, but the combination of axios
was not successful. I felt that there was a problem axios.defaults.baseURL
of axios
because axios.defaults.baseURL
was set to the agent name after setting the agent in vue, so I also configured it in react, but it didn"t seem to work axios.defaults.baseURL = "/ api"