跨域问题
xiuFranklin opened this issue · comments
bigData commented
Question(提问)
Steps to reproduce(问题复现步骤)
我在远程服务器端(公司内网服务器)部署了后台youlai-mall,在本地使用vs code打开youlai-mall-admin,执行npm run dev,无论我怎么修改vue.config.js,都无法连接上。
Screenshot or Gif(截图或动态图)
以下是我的vue.config.js配置:
proxy: { [process.env.VUE_APP_BASE_API]: { target:
http://52.239.184.180:9999`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''
}
}
}`
Link to minimal reproduction(最小可在线还原demo)
Other relevant information(格外信息)
- Your OS:win10
- Node.js version:
- vue-element-admin version: