且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

java 小程序 java.security.AccessControlException:访问被拒绝 java.net.SocketPermission

更新时间:2022-05-01 08:19:43

可能最简单的方法是将资源复制到您的站点,确保您已获得版权所有者的适当权利.

Probably the easiest thing would be to copy the resources to your site, making sure you have been granted appropriate rights by the copyright holder.

或者,站点可以添加一个 crossdomain.xml 文件以允许访问从非同源站点加载的代码.

Alternatively, the site may add a crossdomain.xml file to allow access to code loaded from non-same-origin sites.

可能需要对代码进行签名以获得对本地计算机的完全访问权限.然而,这需要用户接受风险,编写安全代码异常困难.

It is possibly to sign the code to gain full access to the local machine. However, this requires the user to accept the risk and writing secure code is surprisingly difficult.