proxyTable配置如下:(想要的是调http://10.28.41.67:8080/,所以key写的'',是这么写吧?)
proxyTable: {
'': {
target: 'http://10.28.41.67:8080/',
changeOrigin: true
// pathRewrite: {
// '^/': ''
// }
}
}
但是起服务的时候终端报错:
[HPM] Error occurred while trying to proxy request / from localhost:8080 to http://10.28.41.67:8080/ (ETIMEDOUT) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /favicon.ico from localhost:8080 to http://10.28.41.67:8080/ (ETIMEDOUT) (https://nodejs.org/api/errors.html#errors_common_system_errors)
这是后台的问题吗?