Error # 2044: raw protectionError :. text = Error # 2048: sandbox security violation:

I created the crosdomain policy file, I added the code to my flex application, and I still have a security violation in the sandbox ... did I do something wrong? Here are my errors and file fragments:

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://mysite.com/folder1/folder2/media/swf_demo.swf cannot load data from http://mysite.com/folder1/folder2/media/locXML.xml.

swf_demo.swf is my flex application

The following lines have been added to my flex application:

Security.allowDomain("mysite.com");
Security.allowDomain("www.mysite.com");
Security.allowDomain("http://mysite.com/folder1/folder2/media/locXML.xml");

During my init () function, my first line says:

Security.loadPolicyFile("http://mysite.com/crossdomain.xml");

Here is my crossdomain.xml:

<?xml version="1.0" encoding="utf-8"?>
<cross-domain-policy>
<allow-access-from domain="www.mysite.com" secure="false"/>
</cross-domain-policy>

why is he throwing this error? I have to do something wrong ...

+3
source share
1 answer

www.mysite.com mysite.com - , crossdomain. SWF , , crossdomain.xml. mysite.com www.mysite.com, , .

+1

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


All Articles