Wednesday, July 31, 2013

Re: detect sop violation from gwt rpc client

Sorry I'm so very new at this--I'm not sure I quite understand: once I have my CustomRequestTransport, how do I make my GWT-RPC services use it by casting them into ServiceDefTarget?

I'm using gwt-2.5.1, and when I look here, I don't see how ServiceDefTarget has something that takes a RequestTransport:

On Tuesday, July 30, 2013 7:25:20 AM UTC-6, Jens wrote:
You can extend DefaultRequestTransport to gain access to the raw server response. You then have to set your custom RequestTransport into your GWT-RPC services by casting them into ServiceDefTarget.

You should check if all browsers supported by your app set the location header in case of a SOP violation. Maybe some don't. Maybe some other browsers also sets the location header in cases of network outage. Your solution may not be 100% reliable. 

-- J.

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment