# Good old Error #2048: Security sandbox violation

**URL:** <https://forum.kirupa.com/t/good-old-error-2048-security-sandbox-violation/295345>\
**Category:** flash\
**Created:** [August 28, 2009, 1:24pm UTC](https://forum.kirupa.com/t/good-old-error-2048-security-sandbox-violation/295345 "2009-08-28T13:24:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bfi](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@bfi](https://forum.kirupa.com/u/bfi)\
**Post date:** [August 28, 2009, 1:24pm UTC](https://forum.kirupa.com/t/good-old-error-2048-security-sandbox-violation/295345/1 "2009-08-28T13:24:06Z")

</div>

Hi,

I have an swf hosted on let’s say [http://www.domain.com](http://www.domain.com). I want to allow it to access my localhost. So in the root of my localhost, I’ve placed the crossdomain.xml file:

\<?xml version=“1.0”?\>  
\<!DOCTYPE cross-domain-policy SYSTEM “[http://www.adobe.com/xml/dtds/cross-domain-policy.dtd](http://www.adobe.com/xml/dtds/cross-domain-policy.dtd)”\>  
\<cross-domain-policy\>  
\<allow-access-from domain="\*" /\>  
\</cross-domain-policy\>

I can access it through [http://127.0.0.1/crossdomain.xml](http://127.0.0.1/crossdomain.xml). In firebug I see that the swf is making the request for it and the status is 200 OK. Still the flash player throws the "Error #2048: Security sandbox violation: [http://www.domain.com/theflash.swf](http://www.domain.com/theflash.swf) cannot load data from [http://127.0.0.1/somescript."](http://127.0.0.1/somescript.%22) What can be wrong? I don’t know what else to try. I did a lot of searching about this issue, all the relevant information i found was about the crossdomain.xml file, and I think I got that one right.

Thank you and have a nice day!
