mondora / asteroid

An alternative client for a Meteor backend
MIT License
734 stars 101 forks source link

Wss connection problem while trying to connect by https #114

Open svillegasc opened 7 years ago

svillegasc commented 7 years ago

I have a problem, Help me

Mixed Content: The page at 'https://expzero.com/todolist/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://54.88.59.233:3000/websocket'. This request has been blocked; this endpoint must be available over WSS.

I have a proxy that has the SSL certificate, the proxy sends the requests to an application and that application connects to a backend that has the address shown in the error 'ws: //54.88.59.233: 3000 / websocket'.

davidebianchi commented 7 years ago

Hi @svillegasc,

you should use the secure websocket protocol: wss://54.88.59.233:3000/websocket. This solve the issue?

Davide

deanrad commented 7 years ago

I find that none of these URL schemes is working for asteroid to connect to my server. This is for when the browser connects via Meteor, DevTools reports my url as wss://oserver.com/sockjs/551/b8a4v76i/websocket

Asteroid times out on:

wss://oserver.com/sockjs
wss://oserver.com:443/sockjs
wss://oserver.com:443/websocket
ws://oserver.com/sockjs
ws://oserver.com/websocket
deanrad commented 7 years ago

@davidebianchi - wss uses port 443 by default, not 3000

infacq commented 7 years ago

how do set up Meteor to allow wss connection on localhost?

Sleepingbug commented 4 years ago

@svillegasc Have you finally solved it? How to solve it? I have the same problem now.