情况:
company.com
SharePoint.company.com
internalWeb.company.com
问题:
http://SharePoint.company.com.
http://internalWeb.company.com
我想要的是:
注意:
代码:( 在我的网页上运行internalWeb.company.com)
$("#details").load("SharePoint.company.com/someDetails.html");
谢谢!
一个快速的解决方法是在SharePoint web.config中设置自定义标头:
http://www.iis.net/configreference/system.webserver/httpprotocol/customheaders
<customHeaders> <add name="Access-Control-Allow-Origin" value="*" /> </customHeaders>
或仅针对该域,尝试
<customHeaders> <add name="Access-Control-Allow-Origin" value="http://internalWeb.company.com" /> </customHeaders>