【问题标题】:solr is working for my local iis not for hosted iissolr 适用于我的本地 iis 不适用于托管 iis
【发布时间】:2012-10-29 18:34:52
【问题描述】:
var urlsearch = "http://192.168.10.113:8080/collective-intellegence/StoreClicks?userid=" + userId + "&query=" + query;

//Inserted data in the database.
$.ajax({
    type: 'POST',
    url: urlsearch,
    dataType: 'json',
    success: function (data) {
    }
});

当我在 Visual Studio iis 中运行程序时,这是有效的。 不是当我在主机网站上运行代码时。 意思是:

当我使用时

http: //192.168.9.185/KLMS/CustomGoogleSearch.aspx

url 仅在 IE 中不起作用。

但是当我使用

http: //localhost:56332/KLMS/CustomGoogleSearch.aspx

使用确认消息在 IE 中正常工作。

我正在做一个跨域 ajax 调用。

【问题讨论】:

标签: javascript internet-explorer jquery solr cross-domain


【解决方案1】:

由于跨域问题,IE 无法正常工作。

所以你必须添加 XDomainRequest()。 See this

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-18
    • 2014-10-14
    • 2016-04-25
    • 2013-01-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多