nginx - How to proxy the api after the project generated by vue-cli is packaged and sent to the server?
ringa_lee
ringa_lee 2017-05-16 17:07:37
0
3
724

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?

ringa_lee
ringa_lee

ringa_lee

reply all(3)
仅有的幸福

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template