I have a machine (desktop PC) on my LAN serving a Flask app. The app contains WebAssembly (PyScript) which I'd like to test from another device on the same network, but WebAssembly only runs over HTTPS connections or localhost. Since I need to test multitouch functionality, I can't test it from localhost.
How can I access it from another device (Surface) on my network, if it's limited to HTTPS?
I have tried accessing it from the tablet, but it doesn't load because it's not HTTPS. This is a local network, so I can't get a normal certificate because I don't have a domain for that server.
I can enable HTTPS for the flask server using --cert=adhoc
, but the browser will give me a warning saying the connection is insecure on reload because of an invalid certificate, which isn't ideal. I can't think of other workarounds.
Is there a better way that I didn't consider?