开发者

Applet: connect to other host

Hallo,

Now, in my one site applet loads from A host and it should work with B host. But When I tried to do it I got

java.security.AccessControlException: access denied (java.net.SocketPermission MY_URL:443 connect,resolve)

exception. Applet is signed. I have added crossdomain.xml to B host too, but it is not help.

Are there any solution of this issue?

crossdomain.xml:

<?xml version="1.0"?>
<!-- http://192.168.0.199/crossdomain.xml -->
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
  <allow-access-from domain="*"/>
  <allow开发者_Go百科-http-request-headers-from domain="*" headers="Authorization,X-HTTP-Method-Override"/>
</cross-domain-policy>


I dont think there is a solution. An applet is allowed to contact only the server that it has been downloaded from. Regards, - M.S.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜