gpt4 book ai didi

javascript - solr 正在为我的本地 iis 工作,而不是为托管 iis 工作

转载 作者:行者123 更新时间:2023-11-30 06:38:08 25 4
gpt4 key购买 nike

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

url 其在 IE 中工作正常并带有确认消息。

我正在进行跨域 ajax 调用。

最佳答案

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

因此您必须添加 XDomainRequest()。 See this

关于javascript - solr 正在为我的本地 iis 工作,而不是为托管 iis 工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13308095/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com