why reverse proxy 302?
i in local env , i found my browser is my a.com(this is want),but i pub to the production env, i found 302 ,the browser url is change .
can i help me?
my local

i hope cannot change my url.
Your backend server is generating redirects that bypass the proxy.
The server has to be aware of the fact that it may be running behind a reverse proxy and generate redirects accordingly. That is, it should avoid changing the domain via absolute redirects, and make use of X-Forwarded- headers.
The reason it's issuing a redirect in production and not in your local testing may have to do with which Host header it's observing. By default, YARP will use the destination's host for the header, see https://microsoft.github.io/reverse-proxy/articles/header-guidelines.html#host.
Triage: Looks like common problem people run into. We should mention it in YARP troubleshooting section as Common problems. Before the "advanced debugging techniques".
i compare my local request header and product header ,i rewriter my production header ,tks.
i compare my local request header and product header ,i rewriter my production header ,tks.
Hello, this issue ocurred, I use YARP 2.0.1. , are you have any idea?
这是来自QQ邮箱的假期自动回复邮件。 您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。