我在 CRM 表单上有以下 javascript,用于获取主题实体记录的本地副本:
function refreshSubjects() {
sgc_subjectCache = [];
var options = "$select=Title,SubjectId,ParentSubject";
SDK.REST.retrieveMultipleRecords("Subject", options, refreshSubjectsCallback, function(error) {
alert( error.message );
}, refreshSubjectsComplete);
}
但这会导致烦人的“此页面正在访问不受其控制的信息”对话框。 我不确定为什么没有跨域发布。
有没有办法在不影响浏览器安全的情况下抑制这种情况?
最佳答案
我找到了答案:http://social.microsoft.com/Forums/en-IE/crmdevelopment/thread/6e050347-e584-47c2-aab1-8fdf74e8ef1e
基本上,数据库中的域是正确的,但我在网络浏览器中使用的是“localhost”,而 SDK 使用的是 FQDN。
在浏览器中通过 FQDN 调用站点解决了问题!
关于javascript - 客户关系管理 2011 "This page is accessing information that is not under its control",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12724919/