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

SAP Knowledge Base Articles - 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: https://help.hana.ondemand.com/help/frameset.htm?39723061bc4b4b679726b120cbefdf5a.html. This HTML5 app should be deployed to your Cloud Platform account.

Then, you can convert the application to a widget. Refer to the documentation: https://help.hana.ondemand.com/cloud_portal/frameset.htm?f5453954e6cc4dc59d6d16b3f584a841.html

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 C4C 1705 ; SAP Hybris Cloud for Customer 1708 ; SAP Hybris Cloud for Customer 1711