Closed bnssoftware closed 4 years ago
If a host falls through and doesn't need to be proxied based on set rules, rather than having to do this:
return "https://" + context.Request.Host.Value;
Can there be a cleaner way to just fallback to the initial request host?
This library is just a middlware, and you can place other routes in the middleware chain before this middleware.
You should add whatever routes/rules that you want the host to handle as Use middleware before the UseProxy or RunProxy middleware.
Use
UseProxy
RunProxy
If a host falls through and doesn't need to be proxied based on set rules, rather than having to do this:
return "https://" + context.Request.Host.Value;
Can there be a cleaner way to just fallback to the initial request host?