CodeIgniter Forums
HTTPS option for php spark serve - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29)
+--- Thread: HTTPS option for php spark serve (/showthread.php?tid=75269)



HTTPS option for php spark serve - Ale - 01-20-2020

I would like to request the possibility of incorporating the --ssl option for php spark serve. Some API developments require connection through https to avoid mixed content.

Code:
php spark serve --ssl

I listen your comments.


RE: HTTPS option for php spark serve - berendbotje91 - 01-20-2020

https://www.php.net/manual/en/features.commandline.webserver.php

There seems to be no mention of using SSL with PHP Serve, so its probably not possible. You are probably easier of making an development environment with Let's Encrypt anyways.


RE: HTTPS option for php spark serve - Ale - 01-22-2020

Thanks for reply!