gpt4 book ai didi

javascript - 是什么导致子页面中浏览器刷新时出现 XML 错误?

转载 作者:行者123 更新时间:2023-12-05 06:57:06 24 4
gpt4 key购买 nike

我在 AWS 上有一个用 Angular5 编写的无服务器 API 应用程序。一切都按预期工作,除了我刚刚在测试时发现了一些东西。

如果我点击菜单项并注册(一封带有确认码的电子邮件发送给注册用户),我可以确认然后登录。这是一个受欢迎的类(class),可以创建三个设置:年龄、高度和收入。将集合添加到数据库后,用户可以调用他已经上传的数据并将其与数据库中的其他数据进行比较。

比较从域根 (/compare) 下的子页面显示。假设用户在该页面上,她决定刷新浏览器。我在这个论坛上阅读了关于如何在浏览器刷新时从子页面重定向的问题,所以这可能是一个比我得到的更优雅的解决方案。

现在刷新我在 Firefox 中得到这个:

This XML file does not appear to have any style information associated with it. The document tree is shown below.

Error:

Access Denied

Request Id:
1C649DAB28218FAD

Host Id:
IaIZ7xZSkky9Fd1IwXIr8V5VCSQ/74VfTGZlh6RM91ycUASHVTY8r6J3TGS4ySn1EWOCedeS4/0=

在 Chrome 上还有更多:

try { Object.defineProperty(navigator, "globalPrivacyControl", { value: false, configurable: false, writable: false }); document.currentScript.parentElement.removeChild(document.currentScript); } catch(e) {};
This XML file does not appear to have any style information associated with it. The document tree is shown below.

Error

Access Denied

RequestId: 7B4D5C747CAE3944

HostId:
ounTFQE3P6CMVrfYkN9IdQq8/o85g/FsSPb9efmiTjhfOre7R7idWZz783kw6RaqYtC8z4yk9HU

(function () { if (typeof navigator.getUserMedia !== "undefined") navigator.getUserMedia = undefined; if (typeof window.MediaStreamTrack !== "undefined") window.MediaStreamTrack = undefined; if (typeof window.RTCPeerConnection !== "undefined") window.RTCPeerConnection = undefined; if (typeof window.RTCSessionDescription !== "undefined") window.RTCSessionDescription = undefined; // if (typeof navigator.mozGetUserMedia !== "undefined") navigator.mozGetUserMedia = undefined; if (typeof window.mozMediaStreamTrack !== "undefined") window.mozMediaStreamTrack = undefined; if (typeof window.mozRTCPeerConnection !== "undefined") window.mozRTCPeerConnection = undefined; if (typeof window.mozRTCSessionDescription !== "undefined") window.mozRTCSessionDescription = undefined; // if (typeof navigator.webkitGetUserMedia !== "undefined") navigator.webkitGetUserMedia = undefined; if (typeof window.webkitMediaStreamTrack !== "undefined") window.webkitMediaStreamTrack = undefined; if (typeof window.webkitRTCPeerConnection !== "undefined") window.webkitRTCPeerConnection = undefined; if (typeof window.webkitRTCSessionDescription !== "undefined") window.webkitRTCSessionDescription = undefined; })();

我完全不知道那里发生了什么。谁能赐教一下?

即使在不太广泛的 Firefox 返回中,向用户提供所有错误信息、请求 ID 和主机 ID 似乎也很尴尬。

最佳答案

您的 Web 应用程序中的导航器配置不正确。它被定向到一个不存在或逻辑上不正确的位置。

关于javascript - 是什么导致子页面中浏览器刷新时出现 XML 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64978080/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com