You should no longer use .dev domains for your own development

tl;dr: .dev is now a legit TLD.

Chrome 63 redirects .dev domains to HTTPS via HTTP Strict Transport Security (HSTS) header.

If you’re one of the developers like me, who uses .dev domains for your own development, you’ll no longer be able to access your website in latest Chrome. In those cases, if you try to access http://yoursite.dev, you will be redirected to https://yoursite.dev.

What should we do?

A quick workaround would be to rename your .dev sites to .test or .localhost. I recommend the second, as *.localhost sites automatically open as 127.0.0.1. You don’t need to add site.code to /etc/hosts. So, if your site was site.dev you should rename it to site.localhost.

If you find this useful, please let me know, and I’ll post more tips.


Renat Galyamov

Hi, I'm Renat Galyamov

I'm a founder of Wonder.store and MED24.KZ.

A front-end developer with over 9 years of experience building businesses together with founders as well as large enterprises, such as Accenture, The British Museum, Admiral, Kimberley Process, 21st Century Fox and many others.

Subscribe to get my best articles in your inbox first


Join hundreds of weekly readers

I share my coding tips 💻, write about useful services ✌️ and share photos from beautiful places ⛰️



Write a Comment

Comment