Force RequestFactory to use different base url

60 views
Skip to first unread message

Rohit Ghatol

unread,
Jan 2, 2011, 12:17:59 AM1/2/11
to Google Web Toolkit
Hi All,
I am trying to use RequestFactory (http://code.google.com/webtoolkit/
doc/trunk/DevGuideRequestFactory.html) in my GWT Application. This
application would be hosted at xyz.com (actually its embedded inside
an Android client and loaded by Android's WebView using
file://assets/ApplicationScaffold.html), now I want to force Request
Factory to do make calls to abc.com instead of xyz.com (where the
actual web app is loaded).

Safely assume Single Origin Policy does not apply to my browser, so
how to I provide a different url to RequestFactory.

Cheers,
Rohit


Thomas Broyer

unread,
Jan 2, 2011, 9:27:05 AM1/2/11
to google-we...@googlegroups.com
When you initialize your RequestFactory, use the 2-args method, passing a DefaultRequestTransport that you'll initialize with your URL in setRequestUrl.

Ido

unread,
Feb 7, 2012, 10:19:28 AM2/7/12
to google-we...@googlegroups.com
Hi,

Can I set custom request url when running from browsers that enforce SOP?
We would like to have a data server baked with RF on abc.com and app served on xyz.com..

Thanks a lot in advanced,
Ido
Reply all
Reply to author
Forward
0 new messages