I am using Apigee API proxy and in the PreFlow part of the Proxy endpoint I have to make a http request. I created a JavaScript policy, where I tried using fetch
to make the request, but when I call the endpoint, the response is ReferenceError: "fetch" is not defined
. Does anybody have any suggestions what could work?
Apigee JavaScript Object Model exposes httpClient
object.
More detail can be found in the docs .