cozmo/jsQR

use qr code scanner on http

mokhtarsoholi opened this issue · 2 comments

hi i have problem with this project this project work well on https but on http camera not allowed how can i run it on the http

Hi, this is a browser security feature and nothing this or any other lib can bypass.
Go get a certificate for free is the standard answer here.
If you just want to play/test a bit you can also tweak your browser: chrome://flags/#unsafely-treat-insecure-origin-as-secure

cozmo commented

Yep, as I've clarified in many a GitHub issue, as well as in the readme, this library is a QR code scanner, and has no logic for camera access.

getUserMedia doesn't work on http, but jsQR does. That said, if you want to feed jsQR images from a webcam you'll need to figure out how to get an SSL cert. Best of luck and sorry I can't be of more help.