Flash SecurityError about sandbox. force to loadPolicyFile ,but it didn't work

499 Views Asked by At

i have a crossdomain.xml on my server. but it not in "/". and i use loadPolicyFile to load this crossdomain.xml.

Security.allowDomain("*")
Security.allowInsecureDomain("*");
Security.loadPolicyFile(AddressContext.getCurrentEnv().split("rest")[0]+"crossdomain.xml")

the PolicyFile's url is like this : http://siteA.com/aop/crossdomain.xml.

and my restful webservices address is like this : http://siteA.com/aop/rest/start

crossdomain.xml include my flash's host url.

the weird thing is flash still tried to load the http://siteA.com/crossdomain.xml like this

werid img

first is right and response 200. the second response 400 .

finally, the flash still told me SecrityError#2048

i don't know why?

1

There are 1 best solutions below

0
Florian F On
Security.allowDomain("*")
Security.allowInsecureDomain("*");

This is useless and it makes your SWF vulnerable.

Can you post the content of your crossdomain. What value did you set for the meta-policy tag?