Javascript 子域中iframe中的asp.net jquery访问对象

Javascript 子域中iframe中的asp.net jquery访问对象,javascript,jquery,asp.net,iframe,cross-domain,Javascript,Jquery,Asp.net,Iframe,Cross Domain,我有3个应用程序在同一台服务器上运行:app1.corp.local、app2.corp.local和app3.corp.local app1在iframe中打开app2.corp.local。我准备好了 <script> document.domain = 'corp.local' </script> document.domain='corp.local' 我想从app1.corp.local的页面访问iframe中的app2.corp.local中的对象 虽然

我有3个应用程序在同一台服务器上运行:app1.corp.local、app2.corp.local和app3.corp.local

app1在iframe中打开app2.corp.local。我准备好了

<script>
document.domain = 'corp.local'
</script>

document.domain='corp.local'
我想从app1.corp.local的页面访问iframe中的app2.corp.local中的对象

虽然我已经设置document.domain='corp.local',但是

Uncaught DOMException: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "http://app1.corp.local" from accessing a cross-origin frame.
    at contents (http://app1.corp.local/Scripts/jquery-2.1.3.min.js:2:26363)
    at Function.map (http://app1.corp.local/Scripts/jquery-2.1.3.min.js:2:3485)
    at n.fn.init.n.fn.(anonymous function) [as contents] (http://app1.corp.local/Scripts/jquery-2.1.3.min.js:2:26452)
    at Object.success (http://app1.corp.local/App1:31:38)
    at j (http://app1.corp.local/Scripts/jquery-2.1.3.min.js:2:26911)
    at Object.fireWith [as resolveWith] (http://app1.corp.local/Scripts/jquery-2.1.3.min.js:2:27724)
    at x (http://app1.corp.local/Scripts/jquery-2.1.3.min.js:4:11065)
    at XMLHttpRequest.<anonymous> (http://app1.corp.local/Scripts/jquery-2.1.3.min.js:4:14577)
Uncaught DomeException:未能从“HTMLIFrameElement”读取“contentDocument”属性:已阻止具有源代码的帧”http://app1.corp.local“从访问交叉原点帧。
内容(http://app1.corp.local/Scripts/jquery-2.1.3.min.js:2:26363)
at Function.map(http://app1.corp.local/Scripts/jquery-2.1.3.min.js:2:3485)
at n.fn.init.n.fn.(匿名函数)[作为内容](http://app1.corp.local/Scripts/jquery-2.1.3.min.js:2:26452)
成功(http://app1.corp.local/App1:31:38)
在j(http://app1.corp.local/Scripts/jquery-2.1.3.min.js:2:26911)
在Object.fireWith[作为resolveWith](http://app1.corp.local/Scripts/jquery-2.1.3.min.js:2:27724)
在x(http://app1.corp.local/Scripts/jquery-2.1.3.min.js:4:11065)
在XMLHttpRequest。(http://app1.corp.local/Scripts/jquery-2.1.3.min.js:4:14577)
解决这个问题的办法是什么

任何帮助都将不胜感激

--
谢谢

你好。。。有人能帮忙吗。。。!!!你好有人能帮忙吗。。。!!!