Won't connect on ec2 amazon instance
wuilmerj24 opened this issue · 5 comments
I am trying to connect to my server on an amazon ec2 instance and it won't connect. But locally if it connects.
@wuilmerj24 could it be a CORS error?
https://socket.io/docs/v4/server-options/#cors
@y4my4my4m I have cors enabled. I have also added them and it does not work either
Hi! Is there anything that gets printed in the console of your browser?
@darrachequesne Hello. Not in firefox. Probe in chrome and if it shows an error websocket.js: 87 Mixed Content: The page at 'https://admin.socket.io/#/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws: //miip/socket.io/?EIO=4&transport=websocket '. This request has been blocked; this endpoint must be available over WSS.
For future readers:
You won't be able to reach a server without SSL from the admin UI, which is served from an HTTPS url: https://admin.socket.io/
But since SSL certs are more or less free these days, I don't think there's much we can do. Please reopen if needed!