Chrome Redirecting *.dev / *.foo to https

Tech, Other

Look no further if Google Chrome, is redirecting all your *.dev domains to HTTPS, its due to preloaded HTTP Strict Transport Security HSTS. 

After updating my Google Chrome to the latest available beta I couldnt access any of my dev sites. For all my projects I've been using a virtualhost with a .dev domain. So a project a would have a a.dev domain etc. All of these stopped working and started redirecting to https, however Safari and Firefox didnt. 

After wasting about half a day here is the issue. 

The problem

The gTLD .dev is owned by Google, but still its not revealed what they are using it for. However this is a case where all my *.dev domains were redirected to https. With this commit they've added the following lines on to the Chromium HSTS preoaded list. 

{"name": "dev", "include_subdomains": true, "mode": "force-https"},
{"name": "foo", "include_subdomains": true, "mode": "force-https"},

These force your domains to use https. And in my case even having self signed certificates installed with valid host records didnt let me use the sites. 

Now what?

Now according to my understanding there is no other way to sort this issue that to use a different local domain. I am using mysite.localhost (its a bit too much to type in). There is no such rule for how you really name your local domains but it'd be idea to use a consistent naming convention for the ease of adding rules for different thirdparty services like TypeKit, Fonts, Reacptcha etc. 

Hope this post might save a bit of time for you with looking for answers for the redirections issue. 

 

Related Posts

About an year in the new office

It’s amazing how fast time moves on. In March 2017 we laid the first stone for a new office building.

Read More

SilverStripe Elemental Site sear...

Back in 2017 SilverStripe blogged ”Don’t reinvent the block” and announced how they are drifting towards a block-based approach for content management than fixed fields or page types.

Read More

More of Markdown

In the context of CMSs the editors have a special place. Each CMS keeps on top with the best content editors.

Read More

Lets talk!