# Flash XMLSocket security problem

**URL:** <https://forum.kirupa.com/t/flash-xmlsocket-security-problem/316572>\
**Category:** flash\
**Created:** [November 26, 2010, 10:28am UTC](https://forum.kirupa.com/t/flash-xmlsocket-security-problem/316572 "2010-11-26T10:28:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rudeman](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@rudeman](https://forum.kirupa.com/u/rudeman)\
**Post date:** [November 26, 2010, 10:28am UTC](https://forum.kirupa.com/t/flash-xmlsocket-security-problem/316572/1 "2010-11-26T10:28:54Z")

</div>

Hello,  
I have java server using glassfish and I’m trying to connect it with flash app through xmlSocket connection (flash is on the same server). Locally it works fine, but when I try to connect by website, it disconnects because of security problem (error #2048).

I’ve read about it and many sources said that I need to send proper cross-domain file to flash if I want make socket connection. I saved it on the root, then in custom folder and tried to load it with Security.loadPolicyFile(“source”). Finally, I’ve made response on the server for flash request \<policy-file-request\> which sends back cross-domain xmlString, but there is still this security error.

Do you have any idea how to solve this? I’m currently out of options, so I’l be glad for any solutions…
