vue配置反向代理

安装axios:
npm i -S axios

配置文件:
module.exports = {
    devServer: {
        proxy: {
            '/v': {
                target: 'http://127.0.0.1',
                changeOrigin: true
            }
        }
    }
}

原文地址:https://www.cnblogs.com/pangchunyu/p/13037240.html