任何 IE 安全设置都会阻止访问 WebBrowser 的 ObjectForScripting 吗?
我有一个应用程序将 WebBrowser
的 ObjectForScripting
属性设置为自定义对象,以便用户可以使用 window.external
。它一直工作得很好,但现在我的一位客户似乎无法访问它。
我不能 100% 确定问题是什么,因为我必须访问他的计算机,而且我不想打扰他那么多,因为他是客户,而且似乎他找到了解决他想要做的事情的方法。但在我看来,他无法访问 window.external
处的对象。
除了取消选中 Active Scripting
(实际上并不会阻止访问 window.external
)之外,您是否知道任何会阻止访问 处的对象的安全设置窗口.外部
?
I have an application that sets a WebBrowser
's ObjectForScripting
property to a custom object so that the user can access it from javascript code using window.external
. It have always worked fine but now one of my customers seems unable to access it.
I cannot be 100% sure what the problem is because I'd have to access his computer and I don't want to bug him that much since he's a customer and seems like he found a workaround to what he was trying to do. But it seems to me like he cannot access the object at window.external
.
Other than unchecking Active Scripting
(which doesn't actually prevents access to window.external
), do you know any security setting that will prevent access to the object at window.external
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保外部对象安全或 允许编写脚本。
make sure the external object is safe or allowed for scripting.