After the vue project is packaged, static and index.html are generated. Originally, the proxyTable was configured as port 3000 during development. How to proxy the api after reaching the server?
The front end and API are packaged together. How to configure the generation environment?
Can use Nginx
Just let the backend set up CORS
I always feel that your question is very strange. We all know that we use proxyTable as a proxy, that is, we know whether the front-end static page and the server-side API have the same origin after deployment. How can we still have such a problem? It feels like putting the cart before the horse. The answer Don’t you know everything, otherwise how to configure proxyTable