Cors 哪个网站导致我的跨源浏览错误?

Cors 哪个网站导致我的跨源浏览错误?,cors,crm,iis-8,dynamics-crm-2013,Cors,Crm,Iis 8,Dynamics Crm 2013,我已安装CRM 2013,正在使用web资源重定向到其他网页 当我从其他页面导航回CRM中的某个页面(如Contacts)时,它会显示一个空白页面,其中只有顶部的导航栏。如果我刷新或使用导航栏,它可以正常加载。导航多一点后,会出现一个错误: Uncaught SecurityError: Blocked a frame with origin "https://crm.site.com:1234" from accessing a cross-origin frame. https://crm

我已安装CRM 2013,正在使用web资源重定向到其他网页

当我从其他页面导航回CRM中的某个页面(如Contacts)时,它会显示一个空白页面,其中只有顶部的导航栏。如果我刷新或使用导航栏,它可以正常加载。导航多一点后,会出现一个错误:

Uncaught SecurityError: Blocked a frame with origin "https://crm.site.com:1234" from accessing a cross-origin frame.
https://crm.site.com:1234
是CRM

https://other.site.com:4321
是web资源重定向到的位置

错误是否来自没有
https://other.site.com:4321
正确设置以处理COR?我在Web.config中有以下内容:

<httpProtocol>
  <customHeaders>
    <add name="Access-Control-Allow-Origin" value="https://crm.site.com:1234"/>
    <add name="Access-Control-Allow-Headers" value="*"/>
    <add name="Access-Control-Allow-Methods" value="POST,GET,OPTIONS"/>
    <add name="Access-Control-Allow-Credentials" value="true"/>
  </customHeaders>
</httpProtocol>


或者我是否需要修改CRM 2013中的某些内容以允许这样做?

找到了解决方案。如果其他人有相同的问题,则发布

如果重定向web资源,似乎会导致错误。方法是在web资源中添加一个IFrame。以下是我的web资源的最终外观:

<html>
   <body>
       <iframe src="https://other.site.com:4321"></iframe>
   </body>
</html>