为什么我的本地调试网站总是在Internet Explorer中打开?
我有两个完全独立的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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在您的计算机中,将默认的Web浏览器更改为:
设置 - 默认应用程序 - > Web浏览器
In your computer, change your default web browser as:
settings-->default apps-->web browser
弄清楚了...这是一项IT策略,其各自的浏览器始终在IE中打开特定的URL,在这种情况下,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:
With that error, I found this question on SO with the answer.