简体   繁体   English

Angular localhost - 在 Internet Explorer 11 中找不到 URL

[英]Angular localhost - URL not found in Internet Explorer 11

We use Azure AD to authenticate in our Angular Application.我们使用 Azure AD 在我们的 Angular 应用程序中进行身份验证。 We have a "reply URL" with a very long token which results in a 404 in Internet Explorer but not in other browsers.我们有一个带有很长标记的“回复 URL”,这会在 Internet Explorer 中导致 404,但在其他浏览器中不会。

The problem only occurs in local development:问题只出现在本地开发中:

http://localhost:4200/refresh#id_token=eyJ0eXAiOiJKV ... (very long string) http://localhost:4200/refresh#id_token=eyJ0eXAiOiJKV ...(很长的字符串)

When we deploy the application, the url works just fine:当我们部署应用程序时,url 工作正常:

http://www.example.com/refresh#id_token=eyJ0eXAiOiJKV ... (very long string) http://www.example.com/refresh#id_token=eyJ0eXAiOiJKV ...(很长的字符串)

What could be the issue ?可能是什么问题 ?

Found out what happens.发现发生了什么。

Settings -> Compatibility View Settings -> Uncheck "Display intranet sites in Compatibility View"设置 -> 兼容性视图设置 -> 取消选中“在兼容性视图中显示 Intranet 站点”

Now it works现在它起作用了

Very helpful question and answer. 非常有帮助的问题和答案。 Thanks! 谢谢!

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

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