teleclimber / Dropserver

An application platform for your personal web services. https://dropserver.org
Apache License 2.0
48 stars 1 forks source link

It should be possible for an app to express that HTTPS is required #117

Open teleclimber opened 1 year ago

teleclimber commented 1 year ago

Some web platform functionality can only work if the page is served over HTTPS, things like getUserMedia (webcam), notifications, service workers, geo-location. If these features are central to the functionality of the app, then the user should be warned if their instance is configured to serve apps over HTTP.

But then again, why would anybody use HTTP? Maybe because they are hosting locally? It could also be up to the app to detect this condition on a case-by-case basis?

ocdtrekkie commented 1 year ago

It is very common to have Sandstorm configurations set to use HTTP because there is something like a reverse proxy, sniproxy, Cloudflare Tunnel, etc. in front of it providing encryption. So this may be something you want to detect on access as opposed to relying on the configuration. Though I think even in those cases there is an "https" in the configuration file somewhere so the app knows how to format the links.

teleclimber commented 1 year ago

Yes external-access.scheme in the config should be checked to know if the app is served over HTTPS or not.