Search code examples
expresshttpswebrtcpeer

peer.js is not working http but not on https?


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

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.

after adding https://cdnjs.cloudflare.com/ajax/libs/peerjs/0.3.14/peer.js its started giving

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.


Solution

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