peer.js无法在http上运行,但不能在https上运行? [英] peer.js is not working http but not on 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屋!