Actionscript 3 仅从azure云存储blob加载SWF文件的跨域问题
我无法从azure上的cloudstorage帐户将.swf文件加载到我的flash应用程序。图像和视频加载正常,但.swf文件返回此错误:Actionscript 3 仅从azure云存储blob加载SWF文件的跨域问题,actionscript-3,flash,azure,cdn,Actionscript 3,Flash,Azure,Cdn,我无法从azure上的cloudstorage帐户将.swf文件加载到我的flash应用程序。图像和视频加载正常,但.swf文件返回此错误: SecurityDomain 'http://localhost/' tried to access incompatible context 'http://[---].blob.core.windows.net/content/swf/Lib_En.swf' 这是我的跨域: <?xml version="1.0" encoding="utf-8
SecurityDomain 'http://localhost/' tried to access incompatible context 'http://[---].blob.core.windows.net/content/swf/Lib_En.swf'
这是我的跨域:
<?xml version="1.0" encoding="utf-8"?>
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
<allow-http-request-headers-from domain="*" headers="*"/>
<allow-access-from domain="*" />
</cross-domain-policy>
如果您想知道:
我的跨域文件中有正确的mime类型。
这是我的主SWF生成的唯一错误。
我100%确定SWF正在加载文件。Lib_En.SWF应该允许其他域访问它。在Lib_En.swf的代码中的某个地方放下一行
Security.allowDomain("*");
重新构建并上传
关于这方面的更多信息: