简体   繁体   English

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

[英]Microsoft Edge redirects http://localhost to https://localhost

I am encountering an issue where I am not able to open my localhost web apps because Microsoft Edge is redirecting the URL http://localhost:3000 to https://localhost:3000 .我遇到了无法打开 localhost Web 应用程序的问题,因为 Microsoft Edge 正在将 URL http://localhost:3000重定向到https://localhost:3000 Due to this I get the error由于这个我得到了错误

The connection for this site is not secure.此站点的连接不安全。 localhost sent an invalid response. localhost 发送了无效响应。

Why is this happening and what is the fix to it?为什么会发生这种情况以及解决方法是什么?

I got a solution from this article我从这篇文章中得到了解决方案

Following are the steps for Microsoft edge -以下是 Microsoft Edge 的步骤 -

  • Go to Edge browser and type following statement in address bar.转到 Edge 浏览器并在地址栏中键入以下语句。

    edge://net-internals/#hsts

  • Scroll all the way down to the section below and enter “localhost”, then click “Delete”.一直向下滚动到下面的部分并输入“localhost”,然后单击“删除”。 在此处输入图片说明

Relevant even today.即使在今天也很重要。 Worked for me.为我工作。 Thanks.谢谢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM