waxihiv547 commited on
Commit
233855e
1 Parent(s): adf0255

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -0
server.js CHANGED
@@ -8,6 +8,7 @@ app.use('/', proxy(targetUrl, {
8
  https: true,
9
  proxyReqOptDecorator: (proxyReqOpts, srcReq) => {
10
  console.log(srcReq, proxyReqOpts);
 
11
  return proxyReqOpts;
12
  },
13
  }));
 
8
  https: true,
9
  proxyReqOptDecorator: (proxyReqOpts, srcReq) => {
10
  console.log(srcReq, proxyReqOpts);
11
+ proxyReqOpts.headers['x-forwarded-for'] = '98.102.88.158';
12
  return proxyReqOpts;
13
  },
14
  }));