SOP says that XHRs can only connect to the domain that the host page
was loaded from.
So, of you have
http://www.domain1.com/gwt-app/SomePage.html
it doesn't matter where that page gets the GWT module from
<script type="text/javascript"
src="http://www.domain2.com/gwt-app/com.foo.bar.MyXsiteModule.js
"></script>
Your RPCs or XHRs still will have to connect to http://www.domain1.com/
-jason
On Dec 8, 2008, at 3:11 PM, [EMAIL PROTECTED] wrote:
>
> I know this policy will not allow you to communicate with services
> that are not in the same domain as your GWT app. I was wondering,
> however, if you have the JavaScript/GWT application and its subsequent
> services hosted on one domain, but link to the JS/GWT script on
> another domain entirely? For example,
>
> The gwt/js app and related services hosted on domain1.com like so:
> www.domain1.com/gwt-app/gwt-app.js
> www.domain1.com/gwt-app/gwt-service
>
> gwt-app.js will use the service located at www.domain1.com/gwt-app/gwt-service
>
> Have an HTML page in domain2.com at:
> www.domain2.com/app-page/apps.html
>
> ... which apps.html has a script tag linking to
> www.domain1.com/gwt-app/gwt-app.js
>
> Will apps.html still need to adhere to the same-origin policy?
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---