# Cross domain policy file problem

**URL:** <https://forum.kirupa.com/t/cross-domain-policy-file-problem/279891>\
**Category:** flash\
**Created:** [January 20, 2009, 1:53pm UTC](https://forum.kirupa.com/t/cross-domain-policy-file-problem/279891 "2009-01-20T13:53:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![codeycody](https://avatars.discourse-cdn.com/v4/letter/c/8e7dd6/32.png) [@codeycody](https://forum.kirupa.com/u/codeycody)\
**Post date:** [January 20, 2009, 1:53pm UTC](https://forum.kirupa.com/t/cross-domain-policy-file-problem/279891/1 "2009-01-20T13:53:38Z")

</div>

Hi all,

I’m accessing a server’s sockets from the flash client using Flash CS3 professional.

However, should I run it in debug mode OR run the .swf file, it doesn’t connect.

Fine, it’s the crossdomain.xml file.

I create and host this file using apache webserver, and it is accessible using firefox/ie.

loadPolicyFile seems to work, BUT IT DISCONNECTS IMMEDIATELY.

What am I doing wrong??

\<cross-domain-policy\>  
\<allow-access-from domain="_" to-ports=“3300”/\>  
\<allow-access-from domain="_" to-ports=“3333”/\>  
\<allow-access-from domain=“127.0.0.1” to-ports=“3300”/\>  
\<allow-access-from domain=“127.0.0.1” to-ports=“3333”/\>  
\</cross-domain-policy\>

Please help.

“Security sandbox violation cannot load data from 127.0.0.1:3333”
