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.


Subscribe to my newsletter ✌️

Subscribe


Write a Comment

Comment