chrome 中 document/redirect 的已取消请求问题

Canceled request issue with document/redirect in chrome

我的浏览器遇到问题(即 Chrome)正在取消请求。我不确定为什么会这样。

基本上,我有一个 SPA 位于:http://localhost:4200/ 试图执行 document/redirecthttp://localhost:8080/(我刚刚包含了基地 URL 在这里)。

奇怪的是,来自 http://localhost:8080 的相同配置允许来自此 URL 的 document/redirect:https://www.keycloak.org/app/。请参阅下面的屏幕截图:

我只是不明白为什么 https://www.keycloak.org/app/ 执行重定向 OK 而不是我的 SPA 在 http://localhost:4200...

有人可以帮我吗?

我终于找到了请求被 chrome 取消的原因。

我有以下 link:

<a href="" (click)="logout()">logout from private</a>

我的 angular (click)=" 活动被 href="" 活动取消了。

将上面的代码替换为:

<a (click)="logout()">logout from private</a>

...请求不再被取消。

感谢 Sideshowbarker 为我指明了正确的方向。