Jim Mussared
924e55aca1
extmod/webrepl: Allow the page to run from the device (over HTTP).
...
The device will respond to a non-WS request with a simple page that loads
websocket_content.js from a static host (http or https). However, even
if the resources are https, the page is still http and therefore allows
requesting to a WS (not WSS) websocket on the device.
Removed unused client_handshake from websocket_helper, and then merges the
remainder of this file (server_handshake) into webrepl.py (to reduce
firmware size). Also added the respond-as-HTTP handling to
server_handshake.
The default HTTP response is a simple page that sets the base URL and then
loads webrepl_content.js which document.write's the actual HTML.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-07-23 12:43:08 +10:00
..
2021-07-12 16:37:07 +10:00
2022-07-20 17:01:37 +10:00
2017-07-18 11:57:39 +10:00
2022-07-18 13:50:14 +10:00
2022-06-24 17:04:57 +10:00
2022-07-23 12:43:08 +10:00
2022-07-18 22:55:22 +10:00
2022-07-18 22:55:22 +10:00
2022-05-05 13:30:40 +10:00
2021-08-19 22:50:11 +10:00
2021-08-19 22:50:11 +10:00
2022-06-17 11:57:57 +10:00
2022-06-17 11:57:57 +10:00
2020-11-13 11:13:37 +11:00
2017-07-31 18:35:40 +10:00
2017-09-12 16:00:21 +10:00
2017-07-18 11:57:39 +10:00
2019-07-01 22:53:00 +10:00
2017-07-18 11:57:39 +10:00
2021-09-04 16:31:17 +10:00
2021-09-04 16:31:17 +10:00
2022-05-03 22:28:14 +10:00
2017-07-18 11:57:39 +10:00
2022-05-03 22:28:14 +10:00
2020-10-01 12:57:10 +10:00
2022-03-09 10:03:23 +11:00
2022-07-22 17:38:15 +10:00
2022-01-13 13:45:43 +11:00
2022-06-21 00:44:49 +10:00
2022-06-02 16:31:37 +10:00
2022-07-18 13:52:01 +10:00
2022-07-18 13:50:25 +10:00
2022-06-08 14:13:59 +10:00
2022-06-02 16:31:37 +10:00
2022-06-02 16:31:37 +10:00
2022-06-02 16:31:37 +10:00
2022-06-02 16:31:37 +10:00
2022-06-02 16:31:37 +10:00
2022-06-02 16:31:37 +10:00
2022-06-02 16:31:37 +10:00
2022-06-23 11:46:47 +10:00
2022-06-02 16:31:37 +10:00
2022-06-02 16:31:37 +10:00
2022-02-22 00:59:14 +11:00
2022-06-07 23:41:49 +10:00
2022-06-02 16:31:37 +10:00
2022-06-02 16:31:37 +10:00
2022-06-08 14:15:01 +10:00
2022-06-02 16:31:37 +10:00
2022-07-20 16:46:04 +10:00
2022-06-02 16:31:37 +10:00
2022-06-02 16:31:37 +10:00
2019-02-14 00:35:45 +11:00
2022-06-02 16:31:37 +10:00
2022-06-02 16:31:37 +10:00
2020-09-08 11:41:31 +10:00
2022-06-03 11:53:28 +10:00
2022-07-05 11:05:13 +10:00
2019-06-03 16:47:35 +10:00
2022-07-21 16:21:50 +10:00
2022-06-07 16:55:18 +10:00
2022-07-18 13:52:01 +10:00
2021-07-22 00:05:17 +10:00
2020-10-01 14:20:42 +10:00
2020-02-28 10:33:03 +11:00
2020-06-19 22:07:32 +10:00
2020-02-28 10:33:03 +11:00
2022-05-03 22:28:14 +10:00
2019-10-29 12:12:37 +11:00
2021-07-12 17:08:10 +10:00
2019-10-29 14:17:29 +11:00
2020-08-25 17:35:19 +10:00
2022-05-03 22:28:14 +10:00
2021-10-19 22:47:18 +11:00
2022-05-03 22:28:14 +10:00
2018-06-06 14:33:42 +10:00
2020-08-12 23:40:50 +10:00
2022-07-18 13:52:01 +10:00
2022-05-25 13:04:45 +10:00
2020-02-28 10:33:03 +11:00
2017-07-18 11:57:39 +10:00