How to add AddHeadersToRequest
globally?
#1992
Answered
by
raman-m
pradeep1403
asked this question in
Q&A
-
I am having the multiple Routes with common Headers in the My sample Route as below: {
"DownstreamPathTemplate": "/api/inbound/{RestRoute}",
"DownstreamScheme": "http"
"DownstreamHostAndPorts": [
{ "Host": "Localhost", "Port": 51712 }
],
"AuthenticationOptions":{
"AuthenticationProviderKey": "ApiKey",
"AlLowedScopes": []
},
"UpstreamPathTemplate": "/api/dev/inbound/{RestRoute}",
"UpstreamHttpMethod": [ "post","get", "Options"],
"AddHeadersToRequest":{
"JWT":"Claims[JWT]>value"
}
} How can we add the |
Beta Was this translation helpful? Give feedback.
Answered by
raman-m
Mar 18, 2024
Replies: 1 comment
-
Hi @pradeep1403 ! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
raman-m
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @pradeep1403 !
As far as I know, global feature is not implemented. You need to define for each route.
I recommend to have less routes using Catch All feature, and global options will not be required.