Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vagrant Vhost domains (app.dev) You cannot visit right now because the website uses HSTS. on Chrome

Actually Im using Vagrant/homestead that has three projects that each one has it own vhost app1.dev app2.dev app3.dev. Until three days ago everything works perfect but yesterday when tries to run on chrome/safari throw me an error about SSL You cannot visit right now because the website uses HSTS. On safari it is easy to skip this problem but what can I do for chrome.

like image 298
cesarlarsson Avatar asked Dec 13 '17 13:12

cesarlarsson


People also ask

How do I fix Hsts errors?

Clearing HSTS settings in ChromeEnter chrome://net-internals/#hsts in your address bar. In the “Query HSTS/PKP domain” field enter the domain name “my2.siteimprove.com”. Enter the domain “my2.siteimprove.com” in the “Delete domain security policies” field and press the Delete button. Restart the Chrome browser.


1 Answers

You need to change your .dev domains to .test in your Homestead.yaml file then run vagrant destroy && vagrant up. Then make sure you type into your browser the full url https://app1.dev. Also ensure you update your hosts files with the new TLD.

like image 183
joepferguson Avatar answered Nov 15 '22 22:11

joepferguson