I'm using YARP Reverse Proxy in .NET 7 but I'm encountering the following problem.
I've a route that matches
"Path": "/wiki/{*any}" to
"Address": "https://it.wiktionary.org/".
Thus, if I digit
localhost:5000/wiki/prova
it loads the page
https://it.wiktionary.org/wiki/prova
as intended.
However, when it tries to fetch the resources contained in https://it.wiktionary.org/wiki/prova
, it searches them on localhost:5000
and thus it can't find them. For example it looks for
http://localhost:5000/w/load.php?lang=it&modules=startup&only=scripts&raw=1&skin=vector
instead of looking for
https://it.wiktionary.org/w/load.php?lang=it&modules=startup&only=scripts&raw=1&skin=vector
and of course it cannot to find it. Am I missing some options?