Open
Description
Request terminates in middleware. There is however an option "option.onProxyRes" that allows you to further handle the request as you wish in the onProxyRes handler.
However, this handler only takes proxyRes, req, res as args. How may i then call the next middleware in my stack?
Excerpt from readme:
function onProxyRes(proxyRes, req, res) {
proxyRes.headers['x-added'] = 'foobar'; // add new header to response
delete proxyRes.headers['x-removed']; // remove header from response
}
Fairly new to express so please excuse me if this is a silly question..
Thanks!
Metadata
Metadata
Assignees
Labels
No labels