Same origin policy with subdomain

420 views
Skip to first unread message

ag87

unread,
Jul 7, 2011, 1:05:16 PM7/7/11
to Google Web Toolkit
Hello,

I developed an application with GWT and this application calls some
web services.
I'd like to run application on subdomain1.domain.com and Web Services
on subdomain2.domain.com.
Same-Origin policy prevents me from doing this.

Is there any way to avoid the SOP ?

Thanks

Jens

unread,
Jul 7, 2011, 1:45:53 PM7/7/11
to google-we...@googlegroups.com

Hilco Wijbenga

unread,
Jul 7, 2011, 2:04:07 PM7/7/11
to google-we...@googlegroups.com
On 7 July 2011 10:05, ag87 <g.aur...@gmail.com> wrote:
> Is there any way to avoid the SOP ?

Just run a proxy on your server. Everything uses the same server:port
so no SOP issues and the server (i.e. your proxy) figures out where to
send the request. Jetty does this quite nicely for development.

(This has been asked and answered before. Google for more detailed answers.)

Reply all
Reply to author
Forward
0 new messages