SSL on mvc website


#1

I use below codes to determine ssl is existed or not. For some reason, it is always “off” and we use CloudFlare free SSL. I just hope to know is there any difference.
This is our first time to use CloudFlare.

Do you have any experience mvc / c# developers having the same issue and can share with me how to fix it?

Response.write(GethttpType(Request.ServerVariables[“HTTPS”],"").


#2

Your SSL mode is probably Flexible and needs to be changed to “Full strict”.