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

Microsoft Edge redirects http://localhost to https://localhost

我遇到了无法打开本地主机 Web 应用程序的问题,因为 Microsoft Edge 正在将 URL http://localhost:3000 重定向到 https://localhost:3000。因此我得到了错误

The connection for this site is not secure. localhost sent an invalid response.

为什么会发生这种情况,解决方法是什么?

我从这个 article

得到了解决方案

以下是 Microsoft edge 的步骤 -

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

    edge://net-internals/#hsts

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