Symptom
In SAP Cloud for Customer (C4C) Version 1, an external web application embedded via a URL mashup cannot access the device camera or microphone. When attempting to trigger hardware-dependent functionalities, such as clicking a button to launch a QR code scan, the application throws a permission error or the browser actively blocks access. However, despite these restrictions within the embedded C4C environment, the external application works perfectly without any permission issues when accessed as a standalone application in a standard browser tab.
Environment
SAP Cloud for Customer core applications
Reproducing the Issue
-
Log into SAP Cloud for Customer (C4C) Version 1.
-
Navigate to the screen or facet where the URL mashup is embedded.
-
Interact with the mashup application to trigger the camera or microphone (e.g., click the "Scan QR Code" button).
-
A permission error is thrown, and the camera fails to open.
Cause
In SAP Cloud for Customer (C4C) Version 1, URL mashups are rendered inside an iframe embedded within the C4C shell. Modern web browsers enforce strict security policies regarding cross-origin iframes and hardware access, requiring the parent application to explicitly delegate permissions using the allow attribute (e.g.,allow="camera; microphone") before an embedded iframe can access devices like a camera or microphone. Because the iframe rendered by C4C V1 lacks this delegation attribute, it does not automatically pass browser-level hardware permissions from the parent C4C origin to the embedded external application. Consequently, the browser treats the iframe context as a separate, restricted origin and blocks hardware access to protect user privacy.
Resolution
Because C4C V1 does not natively support iframe permission delegation for camera or microphone access in Mashup Authoring, this is an expected product behaviour of SAP Cloud for Customer Version 1.
To utilize external applications that require hardware permissions, consider the following alternative:
- Launch in a New Window/Tab: Instead of embedding the external application as an in-screen URL mashup (iframe), configure the mashup or provide a custom URL link to open the external application in a new browser tab or window. This allows the application to run as a top-level document, where the browser can prompt the user for camera/microphone permissions directly.
Keywords
URL Mashup, C4C V1, Camera Permission, Microphone, Iframe, html5-qrcode, QR Scan, Permission Error, Mashup Authoring, SAP Cloud for Customer , KBA , AP-RC-GEN-MSH , Mashups , Problem
SAP Knowledge Base Article - Public