Replies: 1 comment
-
That's beyond the scope of http-proxy-middleware. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It can appear strange, but i need to proxy a request to many target and send back the first correct response to the caller.
In a custom script I've done in this way:
The function create a promise for each provider and if every providers fails than the functions try the fallback provider
The first valid response si sent back to the requester and the other responses are ignored.
Unfortunately this approach do not works correctly for some kind of requests so I need to use http-proxy-middleware.
Any suggestion on how to implement the same logic with the proxy?
Beta Was this translation helpful? Give feedback.
All reactions