The version of istio I used is 1.45. I found the problem of ingressgate during the use, as follows.
My access form is simply as follows: client - > ingressgate - > service1
When the client initiates the access, the header carries "x-forward-for". After being forwarded by ingressgate, services1 cannot get "x-forward-for" content.
After testing, the ingressgate did not forward the header "x-forwarded-for" at all (bug no problem occurred in other customized headers).
According to your prompt, I modified it as follows:
1）exec command: kubectl edit svc istio-ingressgateway -n istio-system
2) change “Cluster” to “Local”