peer.js无法在http上运行,但不能在https上运行? [英] peer.js is not working http but not on https?

查看:147
本文介绍了peer.js无法在http上运行,但不能在https上运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用此 http://cdnjs.cloudflare时. com/ajax/libs/peerjs/0.3.14/peer.js 它给出了以下错误

when i used this http://cdnjs.cloudflare.com/ajax/libs/peerjs/0.3.14/peer.js its was giving following error

已通过HTTPS加载,但请求了不安全的脚本 ' http://cdnjs.cloudflare.com/ajax/libs/peerjs/0.3.14/peer.js ".这 请求已被阻止;内容必须通过HTTPS提供.

was loaded over HTTPS, but requested an insecure script 'http://cdnjs.cloudflare.com/ajax/libs/peerjs/0.3.14/peer.js'. This request has been blocked; the content must be served over HTTPS.

添加后 https://cdnjs.cloudflare.com/ajax/libs/peerjs/0.3.14/peer.js 它开始提供

已通过HTTPS加载,但请求了不安全的XMLHttpRequest 端点'0.peerjs.com:9000/c03lztxhq78vkj4i/...;.此请求已被 封锁内容必须通过HTTPS提供.

was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '0.peerjs.com:9000/c03lztxhq78vkj4i/…;. This request has been blocked; the content must be served over HTTPS.

推荐答案

检查其对peerjs的兼容性支持 http://peerjs.com/status/old

check its compatability support of peerjs http://peerjs.com/status/old

这篇关于peer.js无法在http上运行,但不能在https上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆