Open mstrinzha opened 4 years ago
Nice catch! I was struggling to get this to work behind a reverse proxy until I found this.
Since we want to just use the same protocol, domain and port as the origin, instead of:
connect(location.protocol + "//" +document.domain+":"+location.port+"/brew")
How about just simplifying to:
connect("/brew")
Cheers!
Remove hardcoded http protocol for polling. bundle.js are using location.protocol instead of "http://" now.