不安全的JavaScript尝试和cordova web安全

不安全的JavaScript尝试和cordova web安全,javascript,html,iframe,cordova,Javascript,Html,Iframe,Cordova,在移动应用程序中,我有一个带有iframe的页面 <iframe id="activityFrame"></iframe> 所有iframe内容都已正确加载。用户可以在页面之间导航。但在iframe的最后一页“ourdomen.example”中,用另一个域“secyrityservice.example”中的支付表单加载其他iframe。当用户单击提交按钮“secyrityservice.example”时,请在“ourdomen.com”iframe by上重新提

在移动应用程序中,我有一个带有iframe的页面

<iframe  id="activityFrame"></iframe>
所有iframe内容都已正确加载。用户可以在页面之间导航。但在iframe的最后一页“ourdomen.example”中,用另一个域“secyrityservice.example”中的支付表单加载其他iframe。当用户单击提交按钮“secyrityservice.example”时,请在“ourdomen.com”iframe by上重新提交

 <script type="text/javascript">
            <!--
                $(function() {
                    document.redirectform.submit();
                });
            //-->
            </script>
        </head>
        <body>
            <form name="redirectform" action="ourdomen.example"
 method="post" target="_parent">
            </form>

我们在控制台中得到错误 不安全的JavaScript试图从URL为“serycirtyservice.example”的框架启动URL为“ourdomen.com”的框架导航。尝试导航的框架与目标既不是同一来源,也不是目标的父对象或开启者

如果运行chrome时使用--disable web security,则所有操作都会正确无误。 我尝试通过以下方式禁用cordova配置中的web安全性

<access origin="*" />
 <preference name="websecurity" value="disable" />
,但这没用

如何在cordova中禁用或修复此错误? 我使用cordova 3.4.0

谢谢

<access origin="*" />
 <preference name="websecurity" value="disable" />