Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for SSL. #249

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add support for SSL. #249

wants to merge 1 commit into from

Conversation

mstrinzha
Copy link

Remove hardcoded http protocol for polling.
bundle.js are using location.protocol instead of "http://" now.

Remove hardcoded http protocol for polling.
bundle.js are using location.protocol instead of "http://" now.
@fenech
Copy link

fenech commented Jun 12, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants