-
Is there any way to dynamically request an interface to obtain a token and set it to the header of this request before a request passes through the route? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey @myhgc! I'm here to help you out with any bugs, questions, or contributions you have. Let's squash those bugs together! 😄 Yes, you can dynamically request an interface to obtain a token and set it to the header of a request before it passes through the route using Apache APISIX. Here is how you can achieve this:
This setup uses the |
Beta Was this translation helpful? Give feedback.
Hey @myhgc! I'm here to help you out with any bugs, questions, or contributions you have. Let's squash those bugs together! 😄
Yes, you can dynamically request an interface to obtain a token and set it to the header of a request before it passes through the route using Apache APISIX. Here is how you can achieve this:
Configure the backend service (upstream):
Create a Plugin Config:
curl "http://127.0.0.1:9180/apisix/adm…