SAP Knowledge Base Article - Public

2674922 - Mashup Not Loading In UI Because X-Frame-Options Console Error


Your mashup is not loading in the UI even though everything appears to be set correctly. You check the browser console and notice an error message: Refused to display '' in a frame because it set 'X-Frame-Options' to 'deny'.


SAP Hybris Cloud For Customer


For a page to be rendered within a frame, it has to have the X-Frame-Options parameter set accordingly. e.g. If your source page was configured with the parameter 'Deny' it will never render in any frame.

There are three possible options for the X-Frame-Options:

X-Frame-Options: DENY
X-Frame-Options: SAMEORIGIN
X-Frame-Options: ALLOW-FROM

The compatibility of the parameters vary depending on the browser / system where your page is trying to be rendered.


The page which you want to be displayed within the mashup frame has to have the correct parameter configured for the X-Frame-Options. You must check with the developer of the source page.


Mashup; Display; Frame; X-Frame-Options; Deny; HTML; , KBA , AP-RC-GEN-MSH , Mashups , Problem


SAP HYBRIS C4C CORE all versions