Webkit Cocoa - WebView 问题

发布于 2024-12-27 21:30:09 字数 279 浏览 2 评论 0原文

在 Cocoa 应用程序中,我有一个网络视图。当 Google 的个性化主页加载时,WebViewDelegate 捕获到以下消息:

Unsafe JavaScript attempt to access frame with URL http://www.google.ca/ from frame with URL http://www.ig.gmodules.com/gadgets...

是否有我设置的设置可以使此错误消失?它似乎不会造成任何实际问题,但应该得到解决。

Within a Cocoa application I have a webview. When Google's personalized home page loads I get the following message caught by the WebViewDelegate:

Unsafe JavaScript attempt to access frame with URL http://www.google.ca/ from frame with URL http://www.ig.gmodules.com/gadgets...

Is there a setting that I set to make this error go away? It doesn't seem to cause any actual problems, but should be resolved.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

私藏温柔 2025-01-03 21:30:09

这听起来像是谷歌那边的问题,我认为你无能为力。这意味着加载了 www.ig.gmodules.com 的 iframe 正在尝试从 www.google.ca 请求某些内容,根据浏览器的说法,这是跨域请求。如果 Google 想要允许,他们需要一个允许请求的 crossdomain.xml。

That sounds like an issue on Google's end, I don't think there's anything you can do there. It means that an iframe with www.ig.gmodules.com loaded is trying to request something from www.google.ca, which according to the browser is a cross-domain request. If Google wanted to allow that they'd need a crossdomain.xml allowing the requests.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文