# Cross domain issue?

**URL:** <https://forum.kirupa.com/t/cross-domain-issue/313204>\
**Category:** Uncategorized\
**Created:** [August 23, 2010, 8:14pm UTC](https://forum.kirupa.com/t/cross-domain-issue/313204 "2010-08-23T20:14:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![natronp](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@natronp](https://forum.kirupa.com/u/natronp)\
**Post date:** [August 23, 2010, 8:14pm UTC](https://forum.kirupa.com/t/cross-domain-issue/313204/1 "2010-08-23T20:14:13Z")

</div>

i have a .swf on my homepage which contains links in it like this:

“[http://mydomain.com/mypage.html](http://mydomain.com/mypage.html)”

this works fine if i access my domain via “[http://mydomain.com](http://mydomain.com)” but the links fail if i access my domain via “[http://www.mydomain.com](http://www.mydomain.com)”

I’m assuming that flash player is viewing these as different domains, so i added a cross-domain policy file with the following:

```auto
<?xml version="1.0"?>
		

	    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
		

	    <cross-domain-policy>
		

	    <allow-access-from domain="www.mydomain.com" />
		<allow-access-from domain="mydomain.com" />
</cross-domain-policy> 

```

but the links do nothing when clicked in the .swf… . what am i missing here? how can i make sure the links work both when “www.” is added to the url by user and when it’s left out???
