Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Web-dev Digest, Vol 2, Issue 142



Hi Ryan,

>  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.

If you have any server-side scripting available on the html page domain then
you can use a simple script to act as a gateway, ie the xmlhttprequest
always requests the gateway url, passing a param indicating the actual url
to be requested.

For security, the  gateway script should validate the requested url's to the
allowed web service url's.

HTH.

Regards,

John Jameson

 _______________________________________________
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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.