Vue单页应用部署

在使用webpack中配置了代理。

秩序在nginx添加反代配置。

  add_header 'Access-Control-Allow-Origin' '*';
        add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
location /api {
            proxy_pass   http://192.168.1.21/;
        }
Last modification:May 29th, 2019 at 05:15 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment