SAP Knowledge Base Article - Public

2434906 - Unable to Integrate C4C into HCP Portal Service via IFrame


You are in the process of integrateing your C4C system into HANA Cloud Platform Portal Service. You are using HTML widget and iframe which points to C4C URL. However C4C can't be displayed and it shows a technical error Refused to display XXX in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.


Using HTML widget and iFrame that points to a C4C URL is not the best practice.

The option is to create a dedicated HTML5 application that points to C4C via destination. You can fefer to: This HTML5 app should be deployed to your Cloud Platform account.

Then, you can convert the application to a widget. Refer to the documentation:

Finally, you can add this widget to the page instead of using the HTML widget.

Dedicated HTML5 application means develop a custom ui5 application which consumes the C4C odata service.

If your idea is to show the whole C4C website directly in the same page of the portal without opening another new webpage then it is a feature request.


KBA , LOD-CRM-EMP , Employee , How To


SAP Hybris Cloud for Customer 1708 ; SAP Hybris Cloud for Customer add-ins 1705 ; SAP Hybris Cloud for Customer add-ins 1711