# Two Domains Pointing to 1 SWF - ERROR

**URL:** <https://forum.kirupa.com/t/two-domains-pointing-to-1-swf-error/260188>\
**Category:** flash\
**Created:** [May 13, 2008, 10:33am UTC](https://forum.kirupa.com/t/two-domains-pointing-to-1-swf-error/260188 "2008-05-13T10:33:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjorge](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mjorge](https://forum.kirupa.com/u/mjorge)\
**Post date:** [May 13, 2008, 10:33am UTC](https://forum.kirupa.com/t/two-domains-pointing-to-1-swf-error/260188/1 "2008-05-13T10:33:17Z")

</div>

I have two domains pointing to the same swf. So I have domain “A” and “B” where my swf (site) is hosted at “A”. Domain “B” loads site “A”.

The swf loads some vars from a DB, when seeing site directly at domain “A” I have no problems, but when seeing with domain “B”, my site just freezes…giving an error at the Browser and I have to close. This is for FF and IE.

At first I thought this was cross domain policies, so I have put at my swf the following code:

```auto
      System.security.allowDomain("B")

```

However this did not solve the problem.

Any help please?!

---

<div class="post-metadata">

**Author:** ![sparkdemon](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)\
**Post date:** [May 13, 2008, 10:40am UTC](https://forum.kirupa.com/t/two-domains-pointing-to-1-swf-error/260188/2 "2008-05-13T10:40:30Z")

</div>

Please put up the error message here, so that we can see it.

---

<div class="post-metadata">

**Author:** ![mjorge](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mjorge](https://forum.kirupa.com/u/mjorge)\
**Post date:** [May 13, 2008, 10:42am UTC](https://forum.kirupa.com/t/two-domains-pointing-to-1-swf-error/260188/3 "2008-05-13T10:42:36Z")

</div>

I don’t have an error message, the browser just freezes. I have to make “Terminate Program”.

---

<div class="post-metadata">

**Author:** ![mjorge](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mjorge](https://forum.kirupa.com/u/mjorge)\
**Post date:** [May 13, 2008, 10:54am UTC](https://forum.kirupa.com/t/two-domains-pointing-to-1-swf-error/260188/4 "2008-05-13T10:54:25Z")

</div>

And it consumes all my pc resources…Memory and cpu …

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [May 13, 2008, 10:56am UTC](https://forum.kirupa.com/t/two-domains-pointing-to-1-swf-error/260188/5 "2008-05-13T10:56:06Z")

</div>

have you got a DB on site B?

---

<div class="post-metadata">

**Author:** ![sparkdemon](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)\
**Post date:** [May 13, 2008, 10:56am UTC](https://forum.kirupa.com/t/two-domains-pointing-to-1-swf-error/260188/6 "2008-05-13T10:56:44Z")

</div>

Does the other domain (the one not hosting the swf )have a crossdomain.xml file at site root

---

<div class="post-metadata">

**Author:** ![mjorge](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mjorge](https://forum.kirupa.com/u/mjorge)\
**Post date:** [May 13, 2008, 11:58am UTC](https://forum.kirupa.com/t/two-domains-pointing-to-1-swf-error/260188/7 "2008-05-13T11:58:28Z")

</div>

No I don’t have a DB at site “B”, and I also don’t have that crossdomain.xml file hosted at “A”. I will try with the crossdomain.xml

Will post the result soon…

---

<div class="post-metadata">

**Author:** ![mjorge](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mjorge](https://forum.kirupa.com/u/mjorge)\
**Post date:** [May 13, 2008, 3:37pm UTC](https://forum.kirupa.com/t/two-domains-pointing-to-1-swf-error/260188/8 "2008-05-13T15:37:15Z")

</div>

> [@mjorge;2325496](#):
>
> Will post the result soon…

Solved with crossdomain.xml… thks.
