为什么我的本地调试网站总是在Internet Explorer中打开?

发布于 2025-02-07 04:07:43 字数 326 浏览 2 评论 0原文

我有两个完全独立的Web应用程序,它们在Windows 10上显示相同的行为。一个是Angular 8/nodejs 16应用程序,我可以在本地使用ng服务在本地使用。第二个是我通过Visual Studio本地构建/运行的较旧的ASP.NET站点。行为是这样的:

如果我尝试通过Chrome或Edge的Localhost访问本地网站,则立即在Internet Explorer中开放该网站。但是,试图在Firefox中打开,是成功的。

我最近升级了计算机,只是在新机器上体验了这一点。我无法确定可能导致这一点的原因。 Windows默认浏览器设置为Chrome。

I have two entirely separate web apps that display the same behavior on Windows 10. One is an Angular 8/nodejs 16 app that I can serve locally with ng serve. The 2nd is an older ASP.NET site that I build/run locally via Visual Studio. The behavior is this:

If I try to access the local website via localhost in Chrome or Edge, the site is immediately opened instead in Internet Explorer. Attempting to open in Firefox, however, is successful.

I recently upgraded computers and am only experiencing this on the new machine. I have been unable to identify what could be causing this. Windows default browser is set to Chrome.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

故事还在继续 2025-02-14 04:07:43

在您的计算机中,将默认的Web浏览器更改为:
设置 - 默认应用程序 - > Web浏览器

In your computer, change your default web browser as:
settings-->default apps-->web browser

手长情犹 2025-02-14 04:07:43

弄清楚了...这是一项IT策略,其各自的浏览器始终在IE中打开特定的URL,在这种情况下,Localhost。我能够通过视频屏幕并注意到仅弹出几毫秒的消息来识别这一点:

Your system administrator has configured Google Chrome to open Internet Explorer to access localhost.

有了错误,我找到了 this 答案的问题。

Figured it out...it's an IT policy that has the respective browsers always open specific URLs in IE--in this case, localhost. I was able identify this by videoing the screen and noticing a message that popped up for only a few milliseconds:

Your system administrator has configured Google Chrome to open Internet Explorer to access localhost.

With that error, I found this question on SO with the answer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文