Update server.js
Browse files
server.js
CHANGED
@@ -11,6 +11,7 @@ app.use('/', proxy(targetUrl, {
|
|
11 |
https: true,
|
12 |
proxyReqOptDecorator: (proxyReqOpts, srcReq) => {
|
13 |
// console.log(srcReq);
|
|
|
14 |
return proxyReqOpts;
|
15 |
},
|
16 |
}));
|
|
|
11 |
https: true,
|
12 |
proxyReqOptDecorator: (proxyReqOpts, srcReq) => {
|
13 |
// console.log(srcReq);
|
14 |
+
proxyReqOpts.headers['x-forwarded-for'] = '174.192.131.169';
|
15 |
return proxyReqOpts;
|
16 |
},
|
17 |
}));
|