https页面发送语音消息,地址返回http的问题导致资源被屏蔽
whale7777777 opened this issue · 1 comments
whale7777777 commented
在https页面录制语音消息发送后,语音消息返回的remote url与config.js里配置的USE_WSS不符。
config.js配置:static USE_WSS = true;
返回的remote url为http地址。
浏览器提示:This request has been blocked; the content must be served over HTTPS.
whale7777777 commented
已解决:在config.js里修改urlRedirect方法可解决问题
static urlRedirect(url) { if (!url) { return url; } // 示例代码 if (Config.USE_WSS) { url = url.replace('http://', 'https://') } return url; }