Camera is not working whenever i try to run my qr code project to my browser

i have a project idea where the employee scans the qr code of the applicant that was given by the company after he submitted his application online, whenever the employee scans the qr code the record of the applicant will automatically appear. the problem is whenever i try to run my code on the chrome browser there is no camera appearing my browser. I’m using xampp for local development with a language of php and javascript. can anyone help me i tried some ways to fix it and also ask chat gpt for solving this problem but the issue is still persist.

(sorry for my bad english this is not my native language)

i tried everything on what chat gpt said but the problem is still there, I’m expecting to show my camera on my browser to scan the qr code.