Symptom
Multiple Mashups are used to display additional data in C4C.
There is a requirement to restrict the URLs that can be loaded within these Mashups by configuring the Content Security Policy (CSP) frame-src directive, allowing only explicitly authorized URLs.
Environment
SAP Cloud for Customer
Reproducing the Issue
Cause
SAP Cloud for Customer (C4C) does not currently provide a dedicated UI setting to configure the CSP header for mashup URLs, unlike another variant where this functionality is available.
Resolution
- Acknowledge that there is no dedicated UI setting in C4C to configure CSP frame-src for mashup URLs.
- Have the HTML mashup author/vendor add http://localhost: to the allow list enforced by the chosen security technique.
- If using CSP in the HTML, add the required localhost entry to the CSP meta tag in the mashup’s HTML file.
- If using X-Frame-Options, configure the restriction in the .htaccess file (as applicable) to include the required localhost entry.
- If the mashup loads resources from HCP and Trusted Domains are maintained there, add localhost to the Trusted Domain List.
- Coordinate with the implementation partner and the Identity Provider (IDP) team to validate the configuration and ensure compatibility with the security setup.
See Also
Keywords
csp, content security policy, frame-src, mashup, mashups, c4c, cloud for customer, x-frame-options, trusted domains, hcp, allow list, localhost, port, iframe, security header , KBA , AP-RC-GEN-MSH , Mashups , Product Enhancement
SAP Knowledge Base Article - Public