Google Chrome .dev not work over http [duplicate]

若如初见. 提交于 2019-12-01 17:43:18

问题


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.


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/47754347/google-chrome-dev-not-work-over-http

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!