javascript – Paho MQTT returns error “the operation is insecure”

I made a small web chat with javascript and paho MQTT, but firefox and edge (thats the browsers i have tried) both didn’t let me connect to the broker “broker.hivemq.com“, firefox says that the operation is insecure.

image of error

I tried connecting to the website with both firefox and microsoft edge, but both gave me an error message saying that the operation is unsure. i use this mqtt:

<script src="https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.js" type="text/javascript"></script>

github with source: github.com/obsiddev/metrochat

Read more here: Source link