Java Servlet and Same Origin Policy question using GWT Request Builder

122 views
Skip to first unread message

coffeMan

unread,
Oct 3, 2011, 11:58:39 AM10/3/11
to Google Web Toolkit
I created a Java Servlet on a test machine, on network. I want to
create a gwt app to call that servlet and retrieve XML from it using
the request builder from a different machine but on the same network.
Is this going to invoke SOP?

Jens

unread,
Oct 3, 2011, 1:06:00 PM10/3/11
to google-we...@googlegroups.com
As long as protocol, domain and port number do not change you wont have a problem regarding same origin policy.If they change you can use JSONPRequstBuilder (requires some changes in your servlet to make it jsonp compliant) or you have to use a reverse proxy to map the external servlet to the domain of your gwt app.

-- J.

coffeMan

unread,
Oct 3, 2011, 1:15:40 PM10/3/11
to Google Web Toolkit
can i change what address is outputted from Eclipse GWT? I believe it
is my IP:port/.html?gwt.codes=IP:9997

I am assuming that is what it is comparing to in relation to my java
servlet i am trying to parse
Reply all
Reply to author
Forward
0 new messages