Google Chrome .dev not work over http [duplicate]

2019-02-23 18:48发布

This question already has an answer here:

From last update of Google Chrome 63.0.3239.84 the .dev domain of my local development machine does not work anymore becouse the browser force URL over https and I do not have a sicure certificate on my local machine. Is there a way to make it work with .dev?

I do not want to use other domains like .local or .test

I tried to enable/disable this chrome://flags/#allow-insecure-localhost but nothing.

2条回答
霸刀☆藐视天下
2楼-- · 2019-02-23 19:02

No, there is no workaround to make .dev work in Chrome; it now belongs to Google.

https://laravel-news.com/chrome-63-now-forces-dev-domains-https

查看更多
We Are One
3楼-- · 2019-02-23 19:16

You shouldn't change it.

Since 1999 that the Network Working Group(NWG) wrote a memorandum listing the safe Top Level Domains(TLDs) for development.
Choose one of that list to have a future-proof solution.

Because some developers depend on some tools with this poor approach - I was one of them - you can use a hack to solve this: write badidea when the HSTS warning pops up.

Use this only as a temporary solution and dedicate your time upgrading, or helping upgrade, your tools.

EDIT: Other solutions here.

查看更多
登录 后发表回答