|
[云开发]
在IE浏览器中,远程连接时,URL为dev正常,改为pd就失败。
[复制链接]
以下代码在360等浏览器中表现为“成功”。但在IE浏览器中,我遇到的问题是将以下"url":"https://A***-dev.apicloud**.**/api/newslists/getbanner",改为正式版的:"url":"https://A***-pd.apicloud**.**/api/newslists/getbanner",即测试版的dev改为正式版的pd,出错了,
结果反馈为“远程连接失败”。请指教。
我的代码:
$.ajax({
"url":"https://A***-dev.apicloud**.**/api/newslists/getbanner",
"method": "POST",
"cache":false,
"data":JSON.stringify(data3),
"timeout": 3000,
"dataType": "json",
"headers": {
"x-apicloud-mcm-key":"*****",
"Content-Type": "application/json; charset=utf-8"
}
}).success(function (data, status, header) {
alert('成功');
}).fail(function (header, status, errorThrown) {
alert('远程连接失败');
})
|
|