Forward authorized request inside controller/service #2045
Answered
by
Tratcher
isBrainDed
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
Tratcher
Feb 22, 2023
Replies: 1 comment 4 replies
-
You don't need MapForwarder, that's only for the simplest scenarios, you can call the IHttpForwarder directly from a normal controller. Most of that transform logic would move into the controller before invoking the forwarder, which addresses your question about 127.0.0.1.
This isn't relevant to direct forwarding, you're not reading anything here from config. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
isBrainDed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You don't need MapForwarder, that's only for the simplest scenarios, you can call the IHttpForwarder directly from a normal controller. Most of that transform logic would move into the controller before invoking the forwarder, which addresses your question about 127.0.0.1.
This isn't relevant to direct forwarding, you're not reading anything here from config.