connecting to a JavaScript scanner project - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: connecting to a JavaScript scanner project (/thread-3254.html) |
connecting to a JavaScript scanner project - Сергей Александрович - 05-25-2023 Good afternoon! I have no experience with JS. I need to connect a QR code scanner to my project. (https://github.com/nimiq/qr-scanner) I copied the files to my project directory /js/qr-scanner.min.js /js/qr-scanner-worker.min.js and added to ContentFiles /js/qr-scanner.min.js /js/qr-scanner-worker.min.js As far as I understand, this is how I connected the scanner to my project. How to do this in IW ? RE: connecting to a JavaScript scanner project - Сергей Александрович - 06-06-2023 Trying to run a demo from GitHub on a local computer gives an error : Access to script at 'file:///D:/Work64/JavaScripts/qr-scanner-master/qr-scanner-master/qr-scanner.min.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome, https, chrome-untrusted. How to "fasten" the scanner to my project on IW? |