Search code examples
httphttpsxmppejabberd

Mixed Content Error in ejabberd/XMPP chat server


My site is protected With SSL when i try to call XMPP Chat server is showing this error.

Mixed Content: The page at 'https://localhost:44300/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://192.168.30.1:5280/http-bind/'. This request has been blocked; the content must be served over HTTPS.

how to add ssl to ejabberd/XMPP chat server

pls Help Me am new to this


Solution

  • how to add ssl to ejabberd/XMPP chat server

    I think you need the option tls: true and the option certfile: ... Try something like this:

    listen:
      - 
        port: 5280
        module: ejabberd_http
        request_handlers:
          "/ws": ejabberd_http_ws
          "/bosh": mod_bosh
          "/api": mod_http_api
          "/presence": mod_webpresence
        web_admin: true
        tls: true
        certfile: "/etc/ejabberd/server.pem"