开发者

signed applet on https server accesses crossdomain xml @port 80, access denied

开发者 https://www.devze.com 2023-03-06 21:58 出处:网络
I have a problem, my applet is signed and crossdomian xml was put at the root of the apache server. Application is accessed through apache https server. If my application(www.dns.com) is accessed with

I have a problem, my applet is signed and crossdomian xml was put at the root of the apache server. Application is accessed through apache https server. If my application(www.dns.com) is accessed with in the netw开发者_如何学Goork, it works fine. If application accessed from out side network, javascript call to applet changes dns to ip address with port 80, where as my application is https with default port 443. So, my application is failing.

my crossdomain xml:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross- domain-    policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>

this link gives more info.

Any ideas.. please.


Since your applet is signed, the crossdomain.xml file should not be necessary. You can use AccessController.doPrivileged to wrap the code that needs this permission.

Otherwise, as you say, you are forced to serve up the crossdomain.xml file on port 80 at the IP address, not your domain name, if that is different for your server configuration.

These options are noted in the other question you linked to.

0

精彩评论

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