Flash 安全沙箱问题:attachment
来源:互联网 发布:宾馆 网络布线收费 编辑:程序博客网 时间:2024/05/16 19:49
错误:
Error #2044: 未处理的 securityError:。 text=Error #2190: 尝试加载 http://10.2.39.23:12007/grs-service/doc/download/20111229-dc13d0b0d3eb4598802f6e156e3c7670.swf 失败,因为它已设置 attachment 的 Content-Disposition。
解决方法见:
http://www.cnblogs.com/coonooo/archive/2011/06/11/fkeditor_flash_cant_play.html
HTTP头中去掉“Content-Disposition ”,Flash就能正常访问,虽后问题解决了,但从小就培养出的刨根问题的优良品格使我在脑袋当中出现了一个大大的问号“?”,“WHY?”,最后通过强大的Google search 我终于得到了答案,以下引用原文:
Starting with version 10,0,2, if Flash Player sees a "Content-Disposition: attachment" header while downloading a SWF file, it will ignore the SWF file rather than play it. Note that this restriction applies only to SWF files and not to other types of content, such as images, sounds, text, or XML files, policy files, etc.
If you control the HTTP server on which the SWF file resides, determine whether you trust the SWF file to execute in the server's domain.If so, remove the "Content-Disposition: attachment" header by changing your HTTP server's configuration.
If you control the HTTP server on which the SWF file resides, determine whether you trust the SWF file to execute in the server's domain.If so, remove the "Content-Disposition: attachment" header by changing your HTTP server's configuration.
其大致意思就是:从Flash 10.0.2后,flash会忽略 那些HTTP返回的头中包含了“Content-Disposition: attachment”的SWF文件,其他文件比如FLASH中引用的图片、声音、文本、XMl等其他文件不做此限制。
- Flash 安全沙箱问题:attachment
- Flash安全沙箱的一个问题
- flash安全沙箱
- 终极,解决本机flash player安全沙箱问题
- Flash网络编程安全沙箱问题隆重解决
- 关于C#建立FLASH服务端的安全沙箱问题
- C++与flash通信安全沙箱问题
- java flash 安全沙箱
- Flash安全沙箱调研
- Flash的安全沙箱
- Flash的安全沙箱
- Flash as3安全沙箱
- flash 开发 安全沙箱冲突
- 浅谈Flash Socket通信安全沙箱
- 浅谈Flash Socket通信安全沙箱
- 跨域策略文件——解决Flash安全沙箱问题
- Flash实现Websocket的跨域问题-安全沙箱问题解决办法
- Attachment
- RHEL5 利用 CentOS的yum 安装openssl gc++及Nginx
- JAVA中的指针,引用及对象的clone
- JAVA泛型类型的使用举例3
- 关于多核的发展对网络游戏设计影响的一些思考
- Eclipse中Android公共库的正确建立及调用方法
- Flash 安全沙箱问题:attachment
- Android——WebView组件的使用详解
- linux 安装p7zip 支持rar
- ca authentication
- C++静态变量和静态函数的小结
- Android TextView多行文本滚动实现
- <机房收费系统>重构至今之感(VB.NET)
- .net动态加载CSS样式表方法总结
- 如何混淆Android项目代码(ProGuard),防止反编译