Since vue-qrcode-reader@4.0.0 the library uses @sec-ant/barcode-detector. This in turn loads a @sec-ant/zxing-wasm web assembly file via a HTTP request to a third-party server. This is problematic for servers with a strict CSP policy preventing such requests.
I see that @sec-ant/barcode-detector allows to set a custom URL to load the wasm file from, via setZXingModuleOverrides, see https://github.com/Sec-ant/barcode-detector#setzxingmoduleoverrides.
Is there a way to use vue-qrcode-reader and set the custom URL for zxing?
Since
vue-qrcode-reader@4.0.0the library uses@sec-ant/barcode-detector. This in turn loads a@sec-ant/zxing-wasmweb assembly file via a HTTP request to a third-party server. This is problematic for servers with a strictCSPpolicy preventing such requests.I see that
@sec-ant/barcode-detectorallows to set a custom URL to load the wasm file from, viasetZXingModuleOverrides, see https://github.com/Sec-ant/barcode-detector#setzxingmoduleoverrides.Is there a way to use
vue-qrcode-readerand set the custom URL for zxing?