I have a nanoHttpd server in my app. After starting the server, if I manually go to the browser and type in localhost:3000/index.html
, it works fine. But when I launch the browser from the app with https://localhost:3000/index.html
. I see that it might be a problem with https://.
How can I handle this problem? Any help is appreciated.
You can only use https
with servers configured for SSL. Your embedded server is not (and, so long as it only accepts requests from localhost
, that's probably even OK). So, use http
as the scheme, not https
.