# Socket connection in browser

**URL:** <https://forum.kirupa.com/t/socket-connection-in-browser/324215>\
**Category:** Uncategorized\
**Created:** [August 9, 2011, 7:22am UTC](https://forum.kirupa.com/t/socket-connection-in-browser/324215 "2011-08-09T07:22:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vaidehimistry](https://avatars.discourse-cdn.com/v4/letter/v/a88e4f/32.png) [@vaidehimistry](https://forum.kirupa.com/u/vaidehimistry)\
**Post date:** [August 9, 2011, 7:22am UTC](https://forum.kirupa.com/t/socket-connection-in-browser/324215/1 "2011-08-09T07:22:29Z")

</div>

Hello,

```
  I am using flash socket to connect to ftp and upload files. Its working fine in flash IDE but it give security error in browser. I have loaded policy file by Security.loadpolicyFile() also i have specified Security.allowDomain("*") but still it doesnt work. I have placed my crossdomain.xml at root level on ftp. 

 My crossdomain.xml looks like this..

 &lt;!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"&gt;

    &lt;cross-domain-policy&gt;
    
    &lt;site-control permitted-cross-domain-policies="master-only"/&gt;
    
    &lt;allow-access-from domain="*" to-ports="*" /&gt;
    
    &lt;allow-access-from domain="*" to-ports="*" /&gt;
    
    &lt;/cross-domain-policy&gt;

```

Yet there is security error…

Can anyone help me?
