Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

PeerJs Error: peer.js: 861 Mixed Content  RSS feed

Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Guys.

I'm trying to develop a "video-conference" site.

I'm using PeerJs.

The browsers require that the site page be HTTPS.

The problem is that when calling the PeerJs library, it has an HTTP call and not HTTPS inside.

Then it returns the error:

peer.js: 861 Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ''. This request has been blocked; the content must be served over HTTPS

That is, the PeerJs library itself does not allow the site to be completed, since all calls should be HTTPS, and inside the PeerJs library it calls HTTP.

Has anyone ever had this situation using PeerJs or something similar to solve?

Is there another way to solve this problem?

Thank you,

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!