app.use(`/apiProxy`, proxy({
target: 'http://172.17.123.131:10241',
// target: 'http://172.17.123.216:4000',
changeOrigin: true,
logLevel: 'debug',
proxyReq: function (req) {
console.log(req)
}
}));
when i ajax get('/apiProxy/TaxRate/GetTaxRates') i want to refer to http://172.17.123.131:10241/TaxRate/GetTaxRates
not http://172.17.123.131:10241/apiProxy/TaxRate/GetTaxRates
How did i do this?
浮云间
萧十郎
慕斯王
随时随地看视频慕课网APP
相关分类