KONG 3.0.0 - http.headers.X-Consumer-Username missing in header from request routed #12722
-
Hi, I am using KONG 3.0.0 and facing the issue related to upstream headers http.headers.X-Consumer-Username set by KONG. Service: Route Create as below:
I have enabled the ACL and oauth plugin on the specified route. Please help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @kamalnagpalsirion,
How exactly do you create the proxy reference in the route? Also note that Kong 3.0.0 is no longer supported. Please consider upgrading. -Hans |
Beta Was this translation helpful? Give feedback.
Hi Hans,
I created the proxy reference in the route path as "/api/v2/customer/CL\d+/payroll".After referring the documentation [https://docs.konghq.com/gateway/latest/how-kong-works/routing-traffic/#request-path], I realised that I have put the ~ in the path to treat it as regex.I don't know how I missed it but I should have created the path as "~/api/v2/customer/CL\d+/payroll" which resolved the issue.
Thanks for the response.
-Kamal