http-proxy-middleware
http-proxy-middleware copied to clipboard
WIP: option to fall through to middleware chain on source 404 (#248)
By default, the proxy handles all requested routes on the given context(s), even if they are 404. This makes sense for routes that are actually handled by the target but there is a use case where it would be useful to be able to fall-through to the middleware chain if the target cannot handle the request. This would allow, for example, for a server’s functionality to be extended by another server.
This merge request adds a fallthrough option. When present, any 404 errors fall through to the middleware stack of the server by calling next().
Context: #248
DeepCode's analysis on #30855c found:
- :x: 0 critical issues. :warning: 0 warnings and 3 minor issues. :heavy_check_mark: 0 issues were fixed.
:speech_balloon: This comment has been generated by the DeepCode bot, installed by the owner of the repository. The DeepCode bot protects your repository by detecting and commenting on security vulnerabilities or other critical issues.
:relaxed: If you want to provide feedback on our bot, here is how to contact us.