Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Use secure websocket from HTTPS clients #4436

Merged
merged 1 commit into from
Feb 5, 2017

Conversation

raucao
Copy link
Contributor

@raucao raucao commented Feb 5, 2017

Currently, the unsecure ws:// scheme is hardcoded. With this change, the scheme will dynamically change to the secure wss:// when the frontend is requested from an HTTPS origin.

I might have missed something, and I'm entirely new to this codebase, so please excuse me if this doesn't make sense. We just stumbled into ws:// failing for our parity node after enabling HTTPS and this is what I found as the most likely cause of the issue.

Currently, the unsecure `ws://` scheme is hardcoded. With this change,
the scheme will dynamically change to the secure `wss://` when the
frontend is requested from an HTTPS origin.
@parity-cla-bot
Copy link

It looks like @skddc hasn'signed our Contributor License Agreement, yet.

The purpose of a CLA is to ensure that the guardian of a project's outputs has the necessary ownership or grants of rights over all contributions to allow them to distribute under the chosen licence.
Wikipedia

You can read and sign our full Contributor License Agreement at the following URL: https://cla.ethcore.io

Once you've signed, plesae reply to this thread with [clabot:check] to prove it.

Many thanks,

Ethcore CLA Bot

@tomusdrw tomusdrw added A0-pleasereview 🤓 Pull request needs code review. M7-ui labels Feb 5, 2017
@tomusdrw tomusdrw requested a review from jacogr February 5, 2017 08:48
@jacogr
Copy link
Contributor

jacogr commented Feb 5, 2017

Looks good and above-board. I just want to do a test run-through to verify.

@jacogr jacogr added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Feb 5, 2017
@jacogr jacogr merged commit bcd3cd8 into openethereum:master Feb 5, 2017
@raucao
Copy link
Contributor Author

raucao commented Feb 5, 2017

[clabot:check]

@parity-cla-bot
Copy link

It looks like @skddc signed our Contributor License Agreement. 👍

Many thanks,

Ethcore CLA Bot

@raucao raucao deleted the feature/secure_websockets branch February 5, 2017 10:14
@raucao
Copy link
Contributor Author

raucao commented Feb 5, 2017

Cool, thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants