解决Flash应用中的"Uncaught exception: Permission denied to call method to Location.toS

2008/09/23 16:41   [JavaScript ] 
其实这是由于Flash 9.0.115.0和Flash9.0.124.0版本中跨域(crossdomain)的security方针的改变引起的。修改这个问题并不复杂,只需要将crossdomain.xml文件中原先的:
<cross-domain-policy> 
    <site-control permitted-cross-domain-policies="all"/> 
    <allow-access-from domain="*" /> 
</cross-domain-policy> 


修改为
<cross-domain-policy> 
    <site-control permitted-cross-domain-policies="all"/> 
    <allow-access-from domain="*" /> 
    <allow-http-request-headers-from domain="*" headers="*"/> 
</cross-domain-policy> 


就OK了。从Adobe’s TechNote page on arbitrary headers not being sent和这里可以看到更加具体的说明。

你可能感兴趣的:(Permission)