尝试使用带有 Vue-Cli 3.0 开发服务器(@vue/cli@3.0.0-rc.10、@vue/cli-service-global@3.0.0-rc.10、quasar framework 0.17)的 Axios 访问生产 REST 服务.5)
我的 vue.config.js:
module.exports = {
pluginOptions: {
quasar: {
theme: 'ios'
}
},
devServer: {
proxy: 'https://myProduction.server.com'
}
}
我收到 502 bad Gateway 错误,如 Chrome 开发工具所列:
请求 URL:http://localhost:8080/REST/getText.php 请求方法:POST 状态码:502 Bad Gateway 远程地址:127.0.0.1:8080 推荐人策略:no-referrer-when-downgrade
我已经使用路由键和 changeOrigin: true; 尝试了更详细的配置。无济于事。我究竟做错了什么?