flash+amfphp+services+drupalSite working in safari and not firefox

Events happening in the community are now at Drupal community events on www.drupal.org.
amcc's picture

I've got a local copy of my site (running on MAMP) that uses flash with the technology and frameworks mentioned in the title working fine on both Firefox and Safari locally. It also works fine locally if I choose the remote path for the gateway url in both browsers ONLY if the site is running locally - but if I upload the swf online it works in Safari but not Firefox.

To recap -
running locally in MAMP at the address http://mysite.dev (localhost/mysite)
gateway URL = http://mysite.dev/services/amfphp/gateway.php
works fine in Firefox and Safari

running locally in MAMP at the address http://mysite.dev (localhost/mysite)
gateway URL = http://mysite.com/services/amfphp/gateway.php (the online version of the gateway.php)
works fine in Firefox and Safari

running online with an identical database, filesystem etc at the address http://mysite.com
gateway URL = http://mysite.com/services/amfphp/gateway.php
works fine in Safari, does not work in Firefox

by the way this isn't a caching issue - same issues on multiple machine with cleared caches etc - any ideas folks

Comments

Well I've fixed this one

amcc's picture

Well I've fixed this one myself - and it shows up something interesting which i don't quite understand:

In firefox if the site is running locally it works with
http://mysite.com/services/amfphp/gateway.php

In firefox if the site is running online it doesn't work with the above address but DOES work with
http://www.mysite.com/services/amfphp/gateway.php

for some reason Safari isn't fussy, and i've not got round to testing PC browsers yet.
Can anyone shed light on this as i'm sure its important at some level to know why this is happening

iongion

iongion's picture

Check that you have the crossdomain.xml policy file and the right policy is used.

crossdomain.xml

amcc's picture

@iongion - thanks that's exactly what i needed. I found that the last changes i mentioned above only worked when accessing the site from http://www.mysite.com and that now it didn't work from http://mysite.com. This explained why my site sometimes appeared to work and sometimes not, as I was probably sometimes varying the URL.

The solution to this and many similar domain/subdomain problems is listed here:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14213

yeah I've noticed this in

seutje's picture

yeah I've noticed this in the past:

if ur at http://example.com u can only connect to gateway at http://example.com
if ur at http://www.example.com u can only connect to gateway at http://www.example.com

easiest solution (and this will improve SEO as well) is to edit ur .htaccess to either redirect the non-www version to the www version or vice versa, that way crawlers will also only see one instance of ur site

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: