You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the URL has been modified by the rewrite middleware, it will force to run the routing middleware just after, disregarding the order configured by the developer.
This is an issue because routing might find a suitable endpoint before we had a chance to execute any other middleware (like the static file middleware).
Expected Behavior
The rewrite middleware doesn't change the middleware order when the URL has been modified.
Is there an existing issue for this?
Describe the bug
When the URL has been modified by the rewrite middleware, it will force to run the routing middleware just after, disregarding the order configured by the developer.
This is an issue because routing might find a suitable endpoint before we had a chance to execute any other middleware (like the static file middleware).
Expected Behavior
The rewrite middleware doesn't change the middleware order when the URL has been modified.
Steps To Reproduce
Good repro here from @sgarnovsky https://github.com/sgarnovsky/AspNetCoreIssues/tree/main/BlazorAppUrlRewritingTest
Exceptions (if any)
No response
.NET Version
8
Anything else?
Related issue: microsoft/reverse-proxy#2532
The text was updated successfully, but these errors were encountered: