function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tim Guibord 9Tim Guibord 9 

X-Frame-Options 'sameorigin' Error using lightning:container

We have a small React component that we are attempting to load in our lighting component using a `lightning:container`.  We have uploaded the bundled component zip and are attempting to load it in the lighting component:
<lightning:container aura:id="customComp" src="{!$Resource.customComp + '/index.html'}" />

When the component is rendered, the follow error is shown in the browser console:
 
Refused to display ... in frame because it set X-Frame-Options to 'sameorigin'.

I have attempted to alter the `manifest.json` file in the packaged React Component, but no matter what I set, it does not change the `sandbox` attribute on the rendered `iframe` element. 
NagendraNagendra (Salesforce Developers) 
Hi Tim,

Sorry for this issue you are encountering.

May I suggest you please check with below links which might help you further. Hope this helps.

Regards,
Nagendra