Vue3 前端配置服务器代理在vue.config.js中设置服务器代理,代码如下:
devServer: {
port: 8080, // 端口号
host: ‘0.0.0.0’,
https:false,
open: true, // 配置自动启动
proxy: {
‘/metadata’: {
target: ‘http://172.18.16.157:7086’,
ws: true,
changeOrigin: t
Vue3 前端配置服务器代理在vue.config.js中设置服务器代理,代码如下:
devServer: {
port: 8080, // 端口号
host: ‘0.0.0.0’,
https:false,
open: true, // 配置自动启动
proxy: {
‘/metadata’: {
target: ‘http://172.18.16.157:7086’,
ws: true,
changeOrigin: t