Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/297.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 在php iframe中加载asp.net_Javascript_Php_Asp.net_Iframe - Fatal编程技术网

Javascript 在php iframe中加载asp.net

Javascript 在php iframe中加载asp.net,javascript,php,asp.net,iframe,Javascript,Php,Asp.net,Iframe,我正在尝试在php iframe中加载asp.net应用程序。但是当我试图查看iframe时,我在asp.net中得到了错误,而不是在php中 WebPage.aspx:500 Uncaught DOMException: Blocked a frame with origin "http://l503021" from accessing a cross-origin frame. Php代码 <script> function OpenForm() { documen

我正在尝试在php iframe中加载asp.net应用程序。但是当我试图查看iframe时,我在asp.net中得到了错误,而不是在php中

WebPage.aspx:500 Uncaught DOMException: Blocked a frame with origin "http://l503021" from accessing a cross-origin frame.
Php代码

<script>

function OpenForm()
{
    document.getElementById("ccFrame").src="http://l503021/valueonpage/WebPage.aspx";
    document.getElementById("popupDiv").style.display="block";
    document.getElementById("workingDiv").disabled=true;
}
</script>

函数OpenForm()
{
document.getElementById(“ccFrame”).src=”http://l503021/valueonpage/WebPage.aspx";
document.getElementById(“popupDiv”).style.display=“block”;
document.getElementById(“workingDiv”).disabled=true;
}

您面临的问题与PHP或ASP.Net无关。正如错误消息所述,由于跨源问题,它正在被阻止。阅读更多关于这方面的信息。。。如何解决这个问题。你能在这方面帮我吗?你有权访问承载你想在iframe中打开的页面的服务器吗?是的,我有权访问服务器。asp.net应用程序在IIS中运行,php应用程序在Ubuntu(nginx)中运行。请参阅此问题以获取答案。。。您面临的问题与PHP或ASP.Net无关。正如错误消息所述,由于跨源问题,它正在被阻止。阅读更多关于这方面的信息。。。如何解决这个问题。你能在这方面帮我吗?你有权访问承载你想在iframe中打开的页面的服务器吗?是的,我有权访问服务器。asp.net应用程序在IIS中运行,php应用程序在Ubuntu(nginx)中运行。请参阅此问题以获取答案。。。