开发者

Gwt How to call servlet/rpc through https from page originated from http

开发者 https://www.devze.com 2022-12-27 07:01 出处:网络
is thereany way to call servlet or make a gwt-rpc call from gwt client and get back the response. Or to call RPC over https only for login purpose.

is there any way to call servlet or make a gwt-rpc call from gwt client and get back the response. Or to call RPC over https only for login purpose.

Please suggest any method or workaround to implement the开发者_JAVA技巧 above task


As I mentioned in your previous question, its a violation of same origin policy. You can't do it.

You can POST (using a FormPanel) to a https website, but you can't read the data back. Even such an approach is unsecure, because someone can easily spoof the post url.

The only way to stay secure is to serve all content via https.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号