3

Chrome has been updated to force HTTPS on some preserved domain names, unfortunately one of my local machine hits the list. My machine name is "dev", Chrome now automatically redirect "http://dev/..." to "https://dev/..."

I have a lot of WordPress sites in "dev", of course there's no certificates installed as it a local development environment, so all the sites no longer work on Chrome. I'm wondering is it the only choice I change the machine name and all those site addresses to work again on Chrome? Any easier method?

Edward
  • 4,858
  • 9
  • 37
  • 42
  • https://stackoverflow.com/questions/47735877/how-to-stop-chrome-from-redirecting-to-https – Josh Lee Dec 13 '17 at 03:32
  • @JoshLee but it's not ".dev", its "dev" – Edward Dec 13 '17 at 04:02
  • Are you implying that your version of Chrome is forcing HTTPS for "dev" for a different reason than everybody else's version of Chrome? Anyway, changing it to "dev.localhost" is still the suggested fix. – Josh Lee Dec 13 '17 at 04:04
  • @JoshLee I don't care about reason, they say ".dev" will be redirected, that means `*.dev`, right? But "dev" is not "*.dev". I suppose it a mistake, if so, it should be fixed, but if not, then it's not just ".dev", but `*dev`, should we not to know that? – Edward Dec 13 '17 at 04:20
  • I've got the same issue since today. xxx.dev was working fine yesterday, today it's automatically redirected to https and no longer works, still works fine in other browsers –  Dec 14 '17 at 09:05

1 Answers1

7

Chrome latest version > 63.xxx will force all domains ending on .dev (and .foo) to be redirected to HTTPS via a preloaded HTTP Strict Transport Security (HSTS) header.

it's good to use .local or .test for local development URLs.

check this link for more detail : https://ma.ttias.be/chrome-force-dev-domains-https-via-preloaded-hsts/

ankit patel
  • 1,888
  • 11
  • 12
  • @ankit patel : Can you please see what I am missing here: https://stackoverflow.com/questions/51003617/mamp-on-mac-redirects-virtual-localhost-to-https – Deepak Agrawal Jun 24 '18 at 01:57