# XML Photo Gallery and WWW/HTTP Question

**URL:** <https://forum.kirupa.com/t/xml-photo-gallery-and-www-http-question/65316>\
**Category:** web dev\
**Created:** [September 24, 2004, 10:26pm UTC](https://forum.kirupa.com/t/xml-photo-gallery-and-www-http-question/65316 "2004-09-24T22:26:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [September 24, 2004, 10:26pm UTC](https://forum.kirupa.com/t/xml-photo-gallery-and-www-http-question/65316/1 "2004-09-24T22:26:42Z")

</div>

Hey everyone,  
My question is, why is it that the photo gallery ([http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm) works when the URL contains www as in [url=“http://www.kirupa.com”]www.kirupa.com, and not when the www is removed such as [url=“http://kirupa.com”]http://kirupa.com](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm) is used?

**Works:** [http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm)  
**No work:** [http://kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm](http://kirupa.com/developer/mx2004/xml_flash_photogallery.htm)

:pirate3:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 25, 2004, 2:45pm UTC](https://forum.kirupa.com/t/xml-photo-gallery-and-www-http-question/65316/2 "2004-09-25T14:45:01Z")

</div>

That’s probably becasue the script usus a wrong ‘homeaddress’. It uses [www.kirupa.com](http://www.kirupa.com) as a place to find the photo’s. It is always a much beter idea to use relative directories.

Or it is because flash recons that it is a whole other domain and it’s “no-download-from-other-domains-silly!”- secrurity goes into effect.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 25, 2004, 11:49pm UTC](https://forum.kirupa.com/t/xml-photo-gallery-and-www-http-question/65316/3 "2004-09-25T23:49:02Z")

</div>

Hmm - is there a way I can specify in the XML file to allow multiple domains?

NM: I found the code to add:

```php
<?xml version="1.0"?>
<cross-domain-policy>
  <allow-access-from domain="kirupa.com"/>
</cross-domain-policy>

```

Thanks 🙂
