I have an nginx ingress controller for my kubernetes cluster. I have a need to add a permanent redirect to an ingress which I can successfully do with
nginx.ingress.kubernetes.io/permanent-redirect: "http://www.example.com"
This works great, except for the fact that path I'm redirecting is used for by users that send POST requests including an Authorization header.
My understanding is that by default (for security reasons) the header would get stripped out. However, I'm redirecting the post request from one server to another on the same domain.
Is there a way to add the necessary instructions to pass the Authorization header along with the redirect?
Thanks!