'Run https to localhost XAMPP

I'm currently working on a QR scanner website (HTML5, PHP & MySQL), but I'm not going to host it on a domain; instead, I'll use it with the localhost over the network. However, because I will be needing the use of the camera to scan, I think I must change the http to https since according to my research, cameras can't run with http because it requires a permission. Is it possible for me to change the localhost to https or do you have any suggestion on how can I make it work? I'm new with this area so please help me. Thank you!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source