gpt4 book ai didi

javascript - 获取属性 Window.startLoad 的权限被拒绝

转载 作者:行者123 更新时间:2023-11-30 10:56:23 25 4
gpt4 key购买 nike

突然之间,这对我不起作用:

<script type="text/javascript">
window.opener.startLoad();
self.close();
</script>

我从 firebug 得到以下信息。

Permission denied to get property Window.startLoad
[Break on this error] window.opener.startLoad();

我什至不确定为什么它正确地说“Window.startLoad”,因为“startLoad”是一个函数?

这在昨天、前天和前天都有效......我绞尽脑汁为什么它不再起作用了?

有什么帮助吗?

最佳答案

我遇到了与本地内容类似的问题 - 如果其他一些内容(例如您的 javascript startLoad 函数)位于不同的文件夹(算作不同的域)中,您将无法从你的<脚本>

您最近是否重新安装了 Firefox,或者升级到新版本?我的一位同事这样做了,我们不得不更改 FF 中的一项权限以使其再次运行。类型

about:config

在地址栏中,然后输入

fileuri

过滤器:文本框中。这应该只剩下 security.fileuri.strict_origin_policy 设置。通过双击将其更改为 false,这应该可以解决您的问题。

关于javascript - 获取属性 Window.startLoad 的权限被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1094033/

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