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:

http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/rpc/ServiceDefTarget.html

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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment