Flash 链接无法跨域工作

发布于 2024-10-31 07:00:58 字数 294 浏览 5 评论 0原文

我寻找答案,但找不到。

我有一个使用 SWFObject 嵌入的 flash 手风琴。 SWF 和相关 XML 文件托管在一个域上。我有大约 10 个站点从其托管位置嵌入此 SWF,包括 SWF 和 XML。手风琴链接到我的域的各个页面。在托管 SWF 和 XML 文件的域中,链接按预期工作。未托管 SWF 的其他域,链接根本不起作用。我通过将 SWF 和 XML 文件放置在每个域本地来验证这是一个跨域问题,并且它们可以工作,但这不是我想要的设置方式。我尝试使用 crossdomain.xml 并允许来自所有主机的访问,但这也不起作用。我还能尝试什么?

I searched for an answer, but I can't find one.

I have a flash accordion embedded using SWFObject. The SWF and related XML file are hosted on one domain. I have about 10 sites embedding this SWF from it's hosted location, both the SWF and the XML. The accordion links to various pages of my domains. The domain in which the SWF and XML file are hosted, the links work as expected. The other domains that the SWF is not hosted on, the links do not work at all. I verified it's a cross domain issue by placing the SWF and XML files locally on each domain and they worked, but this is not how I want it setup. I attempted to use crossdomain.xml and allow access from all hosts but that didn't work either. What else can I try?

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

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

发布评论

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

评论(1

西瑶 2024-11-07 07:00:58

添加到您的 fla 文件

System.security.allowDomain("*");

这将启用从任何​​域加载添加访问权限。

Add to your fla file

System.security.allowDomain("*");

This will enable loading add access from any domain.

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