Query String Parameters Stripped When Using HTTP but Not HTTPS #6980
-
Description: Environment: .NET 9, ASP.NET Core within a .NET Aspire project. Questions: Is this expected behavior? - Is there a reason why query string parameters would be stripped when not using HTTPS? Additional Context: My project uses the standard setup provided by .NET Aspire with no custom middleware for query string handling or URL rewriting. Steps to Reproduce: Set up a new .NET Aspire project with a simple GET endpoint that logs or returns query parameters. Any insights or guidance on this would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Is that because you have https redirection turned on in the application? Can you share a repro? |
Beta Was this translation helpful? Give feedback.
i found the issue. I was using SwaggerUi.Aspire.Hosting - the issue was not to do with http/https but rather if I accessed the API via the swaggerUI resource the httpforwarding was dropping the query string parameters. I made pull request in your project @davidfowl