Hi,
I implemented an HSTS (HTTP Strict Transfer Security) in our web server 2008 R2 host to comply with our IT requirements.
However, after doing that, I can't debug my MVC web apps running in the server. It gives me the following error in Firefox browser:
"Secure Connection Failed: Error code: SSL_ERROR_RX_RECORD_TOO_LONG"
Is there some other step I missed in configuring the server? I added the following method in my Global.asax.cs:
protected void Application_BeginRequest()
{
if (!Context.Request.IsSecureConnection)
{
Response.Redirect(Context.Request.Url.ToString().Replace("http:", "https:"));
}
}
Appreciate any advice.