You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual behavior
The following outbound request (the configured upstream) is executed and returned: http://example.org/
Expected behavior
The following outbound request (with re-written hostname) is executed and returned: https://httpbin.org/
Logs (debug mode or log file): tyk-gateway.log
Example output from the logs showing "Upstream request URL" with the hostname rewritten by the custom js plugin, and the final "Outbound request URL" with the api-def configured upstream hostname.
The text was updated successfully, but these errors were encountered:
Branch/Environment/Version
Describe the bug
Javascript Plugins that rewrite hostname get overwritten with upstream configured in the api-def when sending outbound request.
Reproduction steps
Steps to reproduce the behavior:
Actual behavior
The following outbound request (the configured upstream) is executed and returned: http://example.org/
Expected behavior
The following outbound request (with re-written hostname) is executed and returned: https://httpbin.org/
Logs (debug mode or log file):
tyk-gateway.log
Example output from the logs showing "Upstream request URL" with the hostname rewritten by the custom js plugin, and the final "Outbound request URL" with the api-def configured upstream hostname.
The text was updated successfully, but these errors were encountered: