有时我会制作智能电视应用程序。我已经完成了其中的 2 个。一个使用 HTTPS 地址,另一个仅使用 HTTP。它们都可以在电视上正常工作,但是......
我在向 HTTPS 地址发出请求时遇到了问题。技术支持说有些电视可能无法识别某些 SSL 证书。
我最近开始选择一些 SSL 证书并安装在我的 apache 服务器上。问题是 — 在一个域地址请求中工作正常,在另一个域中则不能。
有人知道这会是什么问题吗?
我的请求代码是:
var url = 'https://smarttv.ibecsystems.kz';
$.ajax({
'url' : url,
'dataType' : 'html',
'async' : false,
'crossDomain' : true,
'contentType' : 'application/json; charset=utf-8',
'success' : function(json) {
$('#divcontent1').html('Ok!');
},
'error' : function() {
$('#divcontent1').html('error');
}
});
https://smarttv.ibecsystems.kz - 工作正常,https://api.krisha.kz - 才不是。尽管它们具有相同的 SSL 证书。
谢谢!
最佳答案
我尝试使用 chrome 浏览器访问您的页面,发现 api.krisha.kz 证书无效。当我访问该站点时,请看下面的消息
This is probably not the site you are looking for! You attempted to reach api.krisha.kz, but instead you actually reached a server identifying itself as api.kolesa.kz. This may be caused by a misconfiguration on the server or by something more serious. An attacker on your network could be trying to get you to visit a fake (and potentially harmful) version of api.krisha.kz.
当其他站点不存在证书问题时。我认为这是问题所在,请通过为 api.krisha.kz 域创建自签名证书来修复证书
关于javascript - Samsung Smart TV 通过 SSL (HTTPS) 请求。无法从服务器获得答案,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19431490/