Configure it in vue.config.js under devServer

All requests beginning with API will use a proxy server to request the real server. ‘/ API ‘is not required and can start with anything else

The Ajax URL you requested is automatically spliced after the real server path

So what you’re going to do is you’re going to make an Ajax request and you’re going to start with an API and you’re going to match the proxy server and the proxy server is going to make the request to the target server and you’re going to return the result

If the peer server does not start with API, then it must be reconfigured under proxy

His understanding will certainly have wrong place hope great god comment correct mistake