priyadi / roundcube-converse.js-xmpp-plugin

XMPP plugin for Roundcube Webmail based on converse.js
48 stars 18 forks source link

Blocked loading mixed active content. #19

Closed masterxq closed 10 years ago

masterxq commented 10 years ago

My Roundcube is running with ssl on port 443, but some browser do block mixed content. So that the not encrypted transmission from js is not possible from the encrypted page. This means that the js component will never reach the server. Ok! I thought there is an simple solution, let the jabber server simply encrypt http-bind. But now i have a new Problem, because the connection can not be established before the self signed certificate will be accepted for port 1234 in my case 5281. It's no problem for me because i simply can access the http-bind with the browser and accept the certificate. But my other user will not be able to do that, without long explanation... Any solutions here?

Regards

MasterQ

priyadi commented 10 years ago

You should configure your web server to proxy BOSH connection. If your Roundcube is at https://mail.example.com, then your BOSH endpoint should be at https://mail.example.com/http-bind, for example. This way the BOSH connection is using the same certificate as your Roundcube installation.

See http://prosody.im/doc/setting_up_bosh for more information on how to setup proxying for various web servers.

masterxq commented 10 years ago

Ok, i have a valid certificate now, but thanks priyadi. Tried the web proxy, and it works fine!