We are currently using forward Proxying from Edge to a Backend using below property on the http target connection. This is working fine. I want to implement the same in Javascript. I am making a https call using javascript policy but apigee is not able to establish a connection to the backend because it's not using the forward proxying. Is there a way to add use.proxy setting somewhere in Javascript policy so the connection works from edge to backend?
<HTTPTargetConnection> <Properties> <Property name="use.proxy">true</Property> </Properties> </HTTPTargetConnection>
Answer by Christian King · Jan 30, 2020 at 08:36 AM
If you're on OPDK, https://docs.apigee.com/private-cloud/v4.18.05/configure-forward-proxying-edge-backend-server might help you as this sets an MP-wide default proxy.
How can I unescape characters in Javascript? 1 Answer
JavaScript callback support in httpClient is not working 1 Answer
JavaScript Callout Policy 2 Answers
Parse json payload and change specific values according to pattern search 1 Answer
Getting some error if my variable name contains "hiphen" in the name inside javascript. 1 Answer