Description
When the agent server has HttpsRedirection configured. The Aspire DevUI does not work. And the UI error is misleading like:
I did take some investigation on source. The endpoint resolving is hard coded as http. So when the agent has https redirection, since the proxy client is configured as AllowAutoRedirect = false. That redirect response is directly sent back to the browser. The browser will take control the request, but that request is raw without handling the agent name prefix. 👈That's the reason why the UI error still has the prefix.
Then the things break. Is that AllowAutoRedirect = false intended? Or do we need to check https endpoint?
Code Sample
Error Messages / Stack Traces
Package Versions
Aspire.Hosting.AgentFramework.DevUI:1.11.1-preview.260625.1
.NET Version
.NET 10
Additional Context
No response
Description
When the agent server has
HttpsRedirectionconfigured. The Aspire DevUI does not work. And the UI error is misleading like:I did take some investigation on source. The endpoint resolving is hard coded as
http. So when the agent has https redirection, since the proxy client is configured asAllowAutoRedirect = false. That redirect response is directly sent back to the browser. The browser will take control the request, but that request is raw without handling the agent name prefix. 👈That's the reason why the UI error still has the prefix.Then the things break. Is that
AllowAutoRedirect = falseintended? Or do we need to check https endpoint?Code Sample
Error Messages / Stack Traces
Package Versions
Aspire.Hosting.AgentFramework.DevUI:1.11.1-preview.260625.1
.NET Version
.NET 10
Additional Context
No response