跨域代理

This commit is contained in:
2023-06-19 15:47:31 +08:00
parent bfc277c4ba
commit 69fa036d1b
4 changed files with 24 additions and 13 deletions

View File

@@ -10,7 +10,15 @@ module.exports = {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {},
proxyTable: {
'/api':{
target:'http://999.free.idcfengye.com',
changeOrigin:true,
pathRewrite:{
'^/api':''
}
}
},
// Various Dev Server settings
host: '0.0.0.0', // can be overwritten by process.env.HOST