WAMP 服务器本地主机不适用于 Chrome [英] WAMP server localhost wont work with Chrome

查看:59
本文介绍了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!

这篇关于WAMP 服务器本地主机不适用于 Chrome的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆