0

Using iframe I'm getting the following error

Blocked a frame with origin "http://002.www2.domain.com" from accessing a frame with origin "http://test.com:5050". The frame requesting access set "document.domain" to "domain.com", but the frame being accessed did not. Both must set "document.domain" to the same value to allow access.

I already read about javascript cross domain policy, but the thing is that with other browsers this codes are working

<html>
<head>
  <script language="JavaScript" type="text/javascript">       
    <script language="JavaScript" type="text/javascript">            
            function hide_wait() {
                <? if ($gs_frame) { ?>                   
                    parent.document.getElementById('container_set').rows = '78,0,*';
                <? } else { ?>
                    location.href='<?= $url ?>';
                <? } ?>    
            }

        </script>

</head>

<frameset rows="78,*,0" framespacing="0" frameborder="0" id="container_set">        
    <frame src="<?= $gs_frame ?>" id="container_1" marginwidth="0" marginheight="0" scrolling="no" style="height: 78px; overflow: hidden; border-bottom: 1px solid #E2E2E2">
    <frame src="loading.php?hr=<?= $hr ?>" id="wait" marginwidth="0" marginheight="0" style="height: 100px;">
    <frame src="<?= $url ?>" id="container_2" marginwidth="0" marginheight="0" onload="hide_wait();"> 
</frameset>    
<body> 
4

1 回答 1

1

恐怕我没有将其标记为可能重复的声誉。因此,我唯一的选择是在此处粘贴链接。希望能帮助到你。

不安全的 JavaScript 尝试使用 URL 访问框架 - 在同一个域中

于 2013-08-19T12:56:40.070 回答