How to configure secure websocket in Meteor app (localhost)

I used Asteroid as my ddp to connect to my Meteor application as a backend. Front end runs https and it works great on Chrome. Thus, it actually consists of two separate applications that work independently. But in Safari, this did not work. Safari blocks the connection because there is mixed / insecure content.

So far I have a force-ssl package added to my Meteor app, but still no luck. How to enable wss protocol on my local development machine ( localhost )

+6
meteor ddp wss
source share
1 answer

Have you tried connecting to localhost just using http: // localhost: 3000 ? If your backend and Meteor frontend are running on the local host, you should not try to connect via https or wss. Your computer does not have a trusted certificate, so the connection cannot be made.

Also, do not use force-ssl locally for the same reason that I mentioned above.

Please post the full error in Safari if the above solution does not work. Please check what works where (they are both on the local host or only on one).

+1
source share

All Articles