Kestrel throws “400 Bad Request: Invalid Target” for URLs with non-ASCII characters when using NGINX as reverse proxy
I am currently migrating a project from IIS to NGINX, and I’m encountering an issue when handling URLs that contain non-ASCII characters. Previously, on IIS, URLs with non-ASCII characters worked fine. Now, with my new setup, NGINX is proxying requests to a Kestrel server. However, when I try to access URLs containing non-ASCII characters (e.g., Cyrillic or accented characters), Kestrel throws a 400 Bad Request: Invalid Target error.