New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HttpsRedirectionMiddleware will not redirect to HTTPS if no port is available #301

jkotalik opened this Issue May 14, 2018 · 0 comments


None yet
1 participant
Copy link

jkotalik commented May 14, 2018

We have changed the behavior of the HttpsRedirectionMiddleware between 2.1.0-preview2 to 2.1.0-rc1. Instead of always redirecting a request to HTTPS, we will now not redirect to HTTPS if no port is available. The HTTPS port can be specified by setting HttpsRedirectionOptions.HttpsPort, setting the ASPNETCORE_HTTPS_PORT environment variable, or by setting an HTTPS url in launchsettings.json.

If you want to continue keeping the original behavior the HttpsRedirectionMiddleware which redirects to port 443, you can set the HttpsRedirectionOptions.HttpsPort = 443.

Please use aspnet/BasicMiddleware#329 for further discussion.

@aspnet aspnet locked and limited conversation to collaborators May 14, 2018

@jkotalik jkotalik added this to the 2.1.0 milestone May 14, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.