Im using the reverse proxy from the following link, currently Im getting some location and I want to update it(the location), How can I do that?
proxy.on('proxyRes', function (proxyRes, req, res) {
res.headers.location = 'http:/a/b/'
});
and I need to change it for example to be
res.headers.location = 'http:/c/d/' I will handle the logic how to change the URL but I want to know how to update it...