h5: {
publicPath: '/',
devServer: {
host: 'localhost',
port: 9001,
proxy: {
'/': {
target: 'https://xx.xx.com',
changeOrigin: true,
}
}
}
}
本地代理请求接口,在后端不改的情况下 如何能够请求成功。现在是能够跨域,但是后端接口不支持跨域。