跨域代理
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user