-
Notifications
You must be signed in to change notification settings - Fork 297
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
WebREPL doesn't work over HTTPS, should issue warning. #15
Comments
Where do you access it using HTTPS? And in what way does in not work (it must already be giving you a warning)? |
I was accessing it on https://micropython.org/webrepl/, as well as my own site (which is HTTPS-only). Whenever I tried to connect, the entire page would just reload, without any warning at all. I only realized what was happening when I looked at the Chrome console (after preserving the log, because the messages were getting deleted) and saw the warnings there. One nice improvement would be to use local storage to store the IP address, because it's very annoying to have to retype it every time. I can open a separate issue for that. |
So far, I've added a warning about this condition to README: acf6666 . While possibly not helpful, this is definitely a lack of useful and user-friendly handling of the issue on browser side. While an idea to patch this in each and every WebSocket application is tempting, the real improvement can happen only on browsers' side.
I and other people don't experience this issue, because there's a browser autocompletion for that field. (So may be another browser issue.) |
@pfalcon Yeah, exactly, there was no user-visible warning for me, just the console one, which I noticed by accident. I don't know why my browser doesn't autocomplete the field, unfortunately. I'm just using the latest Chrome. |
Autocomplete (giving a drop-down of previously used addresses) works for me in a recent version of Firefox. |
It doesn't look like the changes introduced by #19 are live at https://micropython.org/webrepl/ Comparing https://micropython.org/webrepl/ to the current repo's version of webrepl.html:
|
Due to security constraints, the WebREPL won't work when served over HTTPS. There should be a message if it's loaded over HTTPS that says something like "please access the WebREPL over HTTP or download it and open it as a local file".
The text was updated successfully, but these errors were encountered: