Microsoft Edge将http:// localhost重定向到https:// localhost

问题描述

我遇到一个问题,因为Microsoft Edge将URL http://localhost:3000重定向https://localhost:3000,所以无法打开本地主机Web应用程序。由于这个原因,我得到了错误

站点的连接不安全。本地主机发送了无效的响应。

为什么会这样?解决方法是什么?

解决方法

我从这个article

得到了解决方案

以下是Microsoft Edge的步骤-

  • 转到Edge浏览器并在中键入以下语句 地址栏。

    edge://net-internals/#hsts

  • 一直滚动到下面的部分,输入“ localhost”,然后单击“删除”。 enter image description here