'Forward outgoing request from node module for testing java spring
I have a node module which makes an outgoing graphql request which is structured based on a client defined internally in my company, depending on environment (local, int or prod). This works on int or prod, the url for the request is generated and there is a graphql server there. But on local, the url generated does not have a server endpoint to connect to and fails. For this reason, I cannot test the module locally after adding it to a project. I contacted the dev who made the module, there is no way for him to edit to call int via the client when I run it locally. I need to forward the outgoing request made by the node module to the int url, this is the only solution to run it locally. I believe I need to do this some how on the server side of my app (its a java spring app with a react front end). Does any one know how to set up a forwarding in java spring to another url when we have an out going client side request from a node module to a specific (in this case local) url?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
