Google Chrome Redirecting to HTTPS on localhost or virtual host

0

Good morning, everyone.

Recently, I do not know if it was some google update, their browser started to make a strange redirect.

I have apache server and when I enter a url configured in localhost, even if it is virtual such as www.equipe.com, which points to 127.0.0.1, it does not access in any way, even in my residence .

It fails by some proxy configuration and goes to the same link I put, however forcing HTTPS instead of HTTP.

Can anyone tell me what it can be or if it has already gone through this? (OBS: Failure only in google browser, others are normal)

    
asked by anonymous 18.12.2017 / 12:20

1 answer

1

Chrome implements HTTS - HTTP Strict Transport Security - a policy that forces browsers to interact with websites only using the HTTPS protocol to ensure better security.

HTTS works by default for any domain name and because the browser is trying to connect to www.empresa.com and not localhost it thinks that if you are connecting to a remote server instead of being connect to itself and, as such, force HTTPS.

You have two options:

  • Change your local input from empresa.com to empresa.localhost to make it explicit that you are working locally;
  • Add an exception for the empresa.com \ domain in the built-in Chrome settings - which does not recommend because when you are connecting to the production server of your empresa.com domain it will continue to skip HTTS, and will create unsafe connections by default with your company's resources, what's never good .
  •   

    You can consult a more detailed explanation on the subject at   means the error "Your connection is not private. This site uses HSTS" and   how to fix it? (in English)

        
    07.05.2018 / 10:23