Flash 上传器 - 跨域问题

发布于 2024-10-14 08:27:13 字数 215 浏览 3 评论 0原文

我正在使用基于flash的YUI文件上传器,flash请求host/crossdomain.xml文件。我正在请求 localhost,它需要此文件。我以前用过这个,从来没有遇到过这个问题,我的服务器上也从来没有这个文件。

我从未使用过任何 adobe 技术,请问有人可以告诉我是否可以以某种方式将其关闭吗?

问题是我的服务器上无法保存该文件,至少在根位置...

谢谢

I'm using YUI file uploader based on flash, and the flash requests host/crossdomain.xml file. I'm requesting localhost and it requires this file. I was using this before and I have never had this problem and I've never had this file on my server.

I've never used any adobe technologies, could please anybody tell me if it is possible to turn it off somehow ?

The problem is that I can't have the file on my server, at least at root location...

Thanks

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

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

发布评论

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

评论(2

猫七 2024-10-21 08:27:13

我明白了,这取决于您从哪里获取 uploader.swf

如果 uploader.swf 是从您请求的服务器加载的,则不需要 crossdomain.xml。

I see, it depends from where you get the uploader.swf

If uploader.swf is loaded from the server you are requesting, then no crossdomain.xml is needed.

又怨 2024-10-21 08:27:13

回复:您无法将文件添加到 Web 服务器根位置,有一些解决方法(记录在 http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html ),尽管我相信这需要编译 uploader.swf 的修改版本才能在以下位置查找 crossdomain.xml服务器上的不同位置,并且您的服务器必须配置为提供自定义标头,告诉 Flash 播放器可以接受该文件。

Re: your inability to add files to your web server root location, there are ways around it (documented at http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html ), although I believe it would require a modified version of uploader.swf compiled to look for a crossdomain.xml at a different location on your server, and your server would have to be configured to serve a custom header telling the flash player it's okay to accept that file.

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