JsQRScanner icon indicating copy to clipboard operation
JsQRScanner copied to clipboard

Example page silently fails when served via unsecured connection (http)

Open erotte opened this issue 6 years ago • 4 comments

Hi,

the example page unfortunately does not work on a Mac when served over http:// without any warning or error message. The dialog for the camera permission doesn't appear, nothing happens. If I load the same page via https:// everything works fine, just as expected and in the same way as the live example page. I do not own a Windows or Linux Machine, but only Mac browsers are affected in particular. I double-checked on Safari/Firefox/Chome – same issue in all browsers, also on on iOS/Safari.

This is obviously an intended security behaviour of any of the implemented technologies and browser features. Maybe the error or warning has been catched or suppressed somewhere?

There should be a message to make this issue transparent.

Do you have any ideas to isolate, localize or fix this?

erotte avatar Apr 01 '20 22:04 erotte

same here! Can't find anything about it...

improvizza avatar Apr 21 '20 15:04 improvizza

For Security reasons every modern web browser blocks request to camera and microphone unless it is from a valid https source.

ohbus avatar Sep 02 '20 19:09 ohbus

For Security reasons every modern web browser blocks request to camera and microphone unless it is from a valid https source.

As described above this is not the reason for this issue. Accessing the camera via http is an issue that should be transparent to the user, at least to a developer. Currently there is no feedback or message about this. JsQRScanner seems to catch the exception or blocks the communication in another way.

erotte avatar Sep 02 '20 19:09 erotte

The live test demo site, https://treasurehuntqr.appspot.com/treasurehunts/play/5657382461898752?at=106253815718623556511956012583&au=5629499534213120, even though is using https, still does not work with iOS / Chrome. It is Ok with iOS / Safari.

clauderobi avatar Oct 03 '20 14:10 clauderobi