SAP Knowledge Base Article - Preview

3752430 - The barcode scanner fails in BTP launchpad due to csp blocking webassembly for sap.ndc

Symptom

  • In SAP Fiori Launchpad, the sap.ndc BarcodeScannerButton does not initialize the device camera and falls back to manual input.
  • The same barcode scanner works in a development environment outside Launchpad.
  • Browser console shows a Content Security Policy (CSP) violation involving WebAssembly.instantiateStreaming.
  • The Launchpad security headers do not permit 'wasm-unsafe-eval'.


Read more...

Environment

  • Product: Product Independent Assignment (Fallback)
  • SAP Mobile Platform SDK, UI5
  • SAP Fiori Launchpad
  • sap.ndc.BarcodeScannerButton

Keywords

barcode scanner, sap.ndc.BarcodeScannerButton, csp, content security policy, wasm-unsafe-eval, webassembly.instantiateStreaming, launchpad, camera initialization, manual input fallback, ui5, zxing, script-src, security headers, webassembly, flp , KBA , MOB-SDK-UI5 , SAP Mobile Platform SDK, UI5 , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.