apache / cordova-browser

Apache Cordova
Apache License 2.0
170 stars 85 forks source link

https? cordova run browser #89

Closed jviure closed 3 years ago

jviure commented 4 years ago

Hi! sorry if my question is stupid BUT, I've an api where I've to acces through ssl, it's possible to launch the server under ssl? like https://localhost:8000

Thanks!

breautek commented 3 years ago

Short answer is no, cordova doesn't support serving certificates.

I'm not certain on this, but I believe cordova run / cordova serve is intended to be used for development, not for production use. If this is the case, I don't foresee this being added as a feature.

However you can run a reverse proxy server using NGINX or Apache that serves SSL certificates, then you proxy_pass to the cordova server.

timbru31 commented 3 years ago

Closing this issue as Norman has answered the question 👍