# Security sandbox violation on same domain?

**URL:** <https://forum.kirupa.com/t/security-sandbox-violation-on-same-domain/297130>\
**Category:** flash\
**Created:** [September 26, 2009, 1:04am UTC](https://forum.kirupa.com/t/security-sandbox-violation-on-same-domain/297130 "2009-09-26T01:04:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmattrw](https://avatars.discourse-cdn.com/v4/letter/m/41988e/32.png) [@mmattrw](https://forum.kirupa.com/u/mmattrw)\
**Post date:** [September 26, 2009, 1:04am UTC](https://forum.kirupa.com/t/security-sandbox-violation-on-same-domain/297130/1 "2009-09-26T01:04:56Z")

</div>

So i’ve searched the internet and from what I gather a sandbox violation error deals with cross domain issues. But i’m working on one domain and getting this error:

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: [http://theSite.com/stage.swf](http://theSite.com/stage.swf) cannot load data from [http://www.theSite.com/script.php](http://www.theSite.com/script.php).

I’ve done this many times on my own site with no problem, however the site i’m working on has two domains pointing to the same site so I included:

Security.allowDomain(‘[http://www.theSite.com](http://www.theSite.com)’,‘[http://www.theOtherSite.com](http://www.theOtherSite.com)’);

but no joy. any ideas?
