转发不修改host
This commit is contained in:
parent
d61b0709c4
commit
efec44cf96
|
|
@ -15,7 +15,7 @@ app.use('/build', express.static('build'));
|
|||
const options = (target) => {
|
||||
return {
|
||||
target: target,
|
||||
changeOrigin: true, // 允许在请求头中更改主机
|
||||
changeOrigin: false, // 不允许在请求头中更改主机
|
||||
timeout: 30000,
|
||||
onProxyRes: (proxyRes, req, res) => {
|
||||
// 代理成功后输出日志
|
||||
|
|
|
|||
Loading…
Reference in New Issue