Is there anybody facing an issue when enabled SSL on cloud server. I've been trying to modify the code but seem not working.
var currentConnectionSecured = filterContext.HttpContext.Request.IsSecureConnection; <-- always return false although the browser shown https://
therefore I tried to change the code as below
var currentConnectionSecured = filterContext.HttpContext.Request.ServerVariables["HTTP_CLUSTER_HTTPS"] == "on";
or
var currentConnectionSecured = filterContext.HttpContext.Request.ServerVariables["Use_HTTP_X_FORWARDED_PROTO"] == "on";
but still return false. Then I tried get the AbsoluteUri but it return http:// although the browser show https://.
Does anybody facing the same issue?