-
Notifications
You must be signed in to change notification settings - Fork 127
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
EOS networks don't support HTTPS endpoints #65
Comments
I have already registered below. |
I am not able to connect to the liberty block bp while using eos-js. Maybe https just doesn't work yet? I am able to connect with curl however so I am not sure what the difference is
Gives
|
Duplicate issue. Closing |
https://github.com/LibertyBlock/eos-voting/blob/master/main.js#L51 That's an example of how to connect. Replace URL with your desired one. HTTPS is supported by eosjs. I have used it before. |
Eosjs requests routed through Scatter do not support HTTPS. The httpEndpoint config option is automatically prefixed with
http://
https://github.com/EOSEssentials/Scatter/blob/27316e762fb03ef35267daa07a0ac08f40aa443b/src/plugins/defaults/eos.js#L44
Using an HTTPS endpoint would require supporting a
protocol
option for networks so it could be used like:The text was updated successfully, but these errors were encountered: