Thread-topic: Javascript cross domain security work around for Safari when usingXMLHttpRequest
Ryan,
Take a look at:
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16520#ad
ditional
Depending on the specifics of your situation, this resource from
Macromedia may be helpful. The TechNote is written specifically for
aggregating data across domains into a single Flash movie. However, the
PHP, ASP, and Servlet examples provided in the 'Server-side proxy
method' may be of some use.
-Michael DelGaudio
-----Original Message-----
From:
web-dev-bounces+michaeldelgaudio=email@hidden
[mailto:web-dev-bounces+michaeldelgaudio=email@hidden
ple.com] On Behalf Of Ryan Anderson
Sent: Saturday, June 04, 2005 9:45 AM
To: email@hidden
Subject: Javascript cross domain security work around for Safari when
usingXMLHttpRequest
We are writing javascript code within a web page which needs to call
web service methods which reside on a different domain then the domain
the page was loaded from. We are using the XMLHttpRequest object to
do this. This is a known security violation because Javascript does
not let you talk across domains. The FireFox browser however lets you
get around this by either digitally signing the javascript, or by
disabling one of their security parameters in the browser. We would
like this code to run in Safari on OS X, but are unable to get around
the cross domain security in Safari. As far as I can tell, not even
digitally signing the javascript will make this work in Safari.
The javascript code works flawlessly when the web service and the html
page are loaded from the same domain. Once you separate the web
service to another domain, the Safari browser does nothing when the
javascript calls the web service methods. Unfortunately, it is not
possible to have both the html page and web service hosted on the same
domain for our situation.
We would really prefer to use the Safari browser for this application
because it handles ICC profiles nicely, and supports the
XMLHttpRequest object cleanly. Any information regarding how to make
t his work in Safari would be greatly appreciated.
Thanks ....Ryan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/michaeldelgaudio%40northw
esternmutual.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden
This email sent to email@hidden