I am trying to get a .NETCore RC2 web application running on Azure with the RequireHttpsAttribute suite, but I'm having problems.
To eliminate the possibility that this is a problem that I presented with my code, I reduced everything to a minimum and recreated it using the VS2015.NETCore RC2 template “out of the box”.
If I deploy the standard VS2015.NETCore RC2 web application, the site works fine. If I add [RequireHttps] to the controllers, it works fine locally, but on Azure it calls the HTTP302 redirect loop. This is similar to what has changed since RC1, since RequireHttpsAttribute works fine in Azure with RC1.
There is a similar question here: HTTP Error 310 ERR_TOO_MANY_REDIRECTS with RequireHttpsAttribute ASP.NET Core , but it is unclear whether it is worth talking about RC1 or RC2 (I actually suspect RC2), however the only answer applies only to RC1.
A similar question about this attribute causes the redirect loop to AWS: RequireHttps calls the redirect loop to Amazon's elastic load balancer , but this is MVC4 and also mentions a header that is not used by Azure.
source share