mirror of
https://github.com/nasa/openmct.git
synced 2025-01-21 03:55:31 +00:00
Revert "[proxyUrl] pass URL parameters to proxied URL"
This commit is contained in:
parent
2e81550c86
commit
d77922d66c
10
app.js
10
app.js
@ -67,14 +67,10 @@
|
||||
});
|
||||
|
||||
app.use('/proxyUrl', function proxyRequest(req, res, next) {
|
||||
var targetUrl = req.query.url;
|
||||
var queryParameters = req.query;
|
||||
console.log('Proxying request to: ', targetUrl);
|
||||
delete queryParameters['url'];
|
||||
console.log('Proxying request to: ', req.query.url);
|
||||
req.pipe(request({
|
||||
url: targetUrl,
|
||||
strictSSL: false,
|
||||
qs: queryParameters
|
||||
url: req.query.url,
|
||||
strictSSL: false
|
||||
}).on('error', next)).pipe(res);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user