Skip to content

Add support for SSL.#249

Open
mstrinzha wants to merge 1 commit into
Manuel83:masterfrom
mstrinzha:master
Open

Add support for SSL.#249
mstrinzha wants to merge 1 commit into
Manuel83:masterfrom
mstrinzha:master

Conversation

@mstrinzha

Copy link
Copy Markdown

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

fenech commented Jun 12, 2020

Copy link
Copy Markdown

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