I am using a flexible SSL from cloudflare, so my site is now
https://www.example.com
Inside my site, I use socket.io :
server = 'http://direct.example.com';
socket = io.connect(server+":1445" , {'force new connection': true });
Problem is I got:
Mixed Content: The page at 'https://' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint
'http://direct.example.com:1445/socket.io/?EIO=3&transport=polling&t=1434191759199-17'.
So how can I keep the https on my site and call sockets from my server ?
(my server does not have any SSL: I use flexible SSL from cloudflare)
CloudFlare can't proxy websockets right now for anyone other than an Enterprise customer (we're rolling out broader support later this year). Unless it is going over one of these ports we supportright now, then it needs to be on a subdomain we don't touch (this would also mean the SSL wouldn't work).