Are you using an iPhone or iPad and want to use the camera to scan barcodes? Then you will need to allow Safari to use your phone's webcam.
Go to the settings:
Then click on camera:
And select “Allow”:
This gives the Barcode Scan App access to the webcam so it can be used as a barcode scanner.
Install as an app
The Barcode Scan App can also be installed as an app on an iPhone or iPad. Click here for more information.