You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
This issue fundamentally builds on issue that fixed in #1415
Provided this merge, then it would be possible to force a 404 status to pass the request along to the next middleware. Ideally this would be configurable as an option..
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:
Fairly new to express so please excuse me if this is a silly question..
Thanks!
The text was updated successfully, but these errors were encountered: