Google Chrome Redirecting to HTTPS on localhost or virtual host

Asked

Viewed 1,419 times

0

Good morning to all.

Recently, I do not know if it was a 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 like www.equipe.com, which points to 127.0.0.1, it does not access at all, even in my home.

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

Can anyone tell me what it might be or if you’ve been through it? (Note: Failure only in google browser, the rest are normal)

  • Very strange this, take a look at > Chrome:/flags it to see if you find something, I was having a problem loading plugins in mine, I took a stand to reset it there, solved my case.

  • Okay, I’m gonna try.

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 as for the browser is trying to connect to www.empresa.com and not localhost he thinks he’s connecting to a remote server instead of connecting to himself and, as such, forces HTTPS.

You have two options:

  1. Exchange your local entry from empresa.com for empresa.localhost to make it clear that you are working locally;
  2. Add an exception for the domain empresa.comin Chrome internal settings - what nay recommend because when connecting to your home production server empresa.comit will continue to ignore HTTS and will create unsafe links by default with your company’s resources, which is never good.

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.