Flex - Sandbox Security Violation - ERROR No. 2048

So, if I put - http: //xxx.xx.xx.x/website/website.html and try to use HTTPService, in swf for contact - https: //yyy.yy.yy.y/resources/script , I I get an error in the sandbox. If I put - https: //yyy.yy.yy.y/crossdomain.xml in the browser and access to it, everything in the crossdomain file looks fine. wWen I will go back and try to use the HTTPService from http: //xxx.xx.xx.x/website/website.html everything works until I close the browser, which I assume clears the cache.

******** crossdomain.xml *********

<?xml version="1.0" ?> <cross-domain-policy> <site-control permitted-cross-domain-policies="master-only"/> <allow-access-from domain="*"/> <allow-http-request-headers-from domain="*" headers="*"/> </cross-domain-policy> 

******** Script Action *************

 Security.loadPolicyFile("https://xxx.xx.xx.x/crossdomain.xml"); 
+4
source share
2 answers

Change the following line:

 <allow-access-from domain="*"/> 

in

 <allow-access-from domain="*" secure="false" /> 

You can learn more about this at adobe.com ...

http://kb2.adobe.com/cps/142/tn_14213.html

+12
source

We found that Chrome will abandon self-signed SSL certificates, but Firefox and Safari will plow forward. Try a different browser and see if this works for you.

+2
source

Source: https://habr.com/ru/post/1341844/


All Articles