Apple设备上发生了请求错误的请求 [英] Misdirected Request happening on Apple devices
问题描述
我一直面临的一个烦人且持久的问题是"请求错误的错误",因为请求的主机名与服务器名称指示(SNI)不匹配,客户端需要该请求的新连接从我的前端到后端执行AJAX请求时,此连接". CORS的来源已得到照顾.奇怪的是,此问题仅发生在Safari和Chrome上的Apple设备(iPhone/Mac Book)上.其他Android和Windows设备可无缝运行.我尝试向我的域购买一个额外的专用SSL证书,其中包括GoDaddy的两个子域(前端和后端).
An annoying and persistent issue that I've been facing is a "Misdirected Request Error The client needs a new connection for this request as the requested host name does not match the Server Name Indication (SNI) in use for this connection" when carrying out an AJAX request from my front end to the back end. CORS origin has been taken care of. The weird thing is that this issue only occurs with Apple devices (iPhone/Mac Book) on Safari and Chrome. Other Android and Windows devices work seamlessly. I tried purchasing an additional dedicated SSL certificate to my domain which includes two subdomains (the frontend and backend) from GoDaddy.
还有其他提示/解决方案吗?
Any other tips/solutions please?
推荐答案
为两个子域颁发单独的SSL证书可以解决问题.确保两个子域未在同一证书下分组.
Issuing a separate SSL certificate for the two sub-domains did the trick. Make sure that the two sub-domains are not grouped under the same certificate.
这篇关于Apple设备上发生了请求错误的请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!