# Cross domain problem

**URL:** <https://forum.kirupa.com/t/cross-domain-problem/242594>\
**Category:** flash\
**Created:** [October 28, 2007, 9:03am UTC](https://forum.kirupa.com/t/cross-domain-problem/242594 "2007-10-28T09:03:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Qgeis](https://avatars.discourse-cdn.com/v4/letter/q/76d3ee/32.png) [@Qgeis](https://forum.kirupa.com/u/Qgeis)\
**Post date:** [October 28, 2007, 9:03am UTC](https://forum.kirupa.com/t/cross-domain-problem/242594/1 "2007-10-28T09:03:33Z")

</div>

I’m have a flash file which loads an xml file **[sub.domain.com/data.xml](http://sub.domain.com/data.xml)**. It loads fine when the swf is loaded from **[sub.domain.com](http://sub.domain.com)** but it does not load from **[www.sub.domain.com](http://www.sub.domain.com)**.

It’s all the same directory on the webserver. I tried using crossdomain.xml and allowed access from \ ***.sub.domain.com**. Doesn’t work.

Any idea what would work? besides using php to determine the current domain (www or not) and load in the path via flashvars.
