WAMP 服务器本地主机不适用于 Chrome

问题描述:

我的 WAMP 服务器本地主机仅适用于 MS Edge,但不适用于 chrome.

My WAMP server localhost only works with MS edge but doesn't with chrome.

我在 Windows 10 上遇到了同样的问题.尝试了在 Internet 上找到的所有选项(更改端口、主机文件配置、防火墙等),但在我的情况只是由于 Chrome 自动重定向到 httpS 本地主机地址的协议Wamp 默认情况下不支持 https 引起的.因此,我必须删除该自动重定向以保留 localhost 的 http 协议.

I had the same problem on Windows 10. Tried all options found on the internet (changing port, host file config, firewall,...), but in my case it was simply caused by Chrome's automatic redirection to httpS protocol for localhost adress and Wamp by default does not support https. So i had to remove that automatic redirect to stay on http protocol for localhost.

我在 Chrome 的地址栏中输入chrome://net-internals/#hsts",然后在删除域安全策略"部分输入localhost",然后单击删除"按钮.就我而言,它有帮助,我希望它也能帮助你!

I made that typing "chrome://net-internals/#hsts" in the adress bar of Chrome, and enter "localhost" in the "Delete domain security policies" section, and clic on "Delete" button. In my case it helped, i hope it will help you too!