You need to sign in to do that
Don't have an account?
Tim 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:
When the component is rendered, the follow error is shown in the browser console:
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.
<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.
Sorry for this issue you are encountering.
May I suggest you please check with below links which might help you further.
- https://github.com/forcedotcom/aura/issues/138
- https://github.com/developerforce/LightningContainerExamples/issues/7
Hope this helps.Regards,
Nagendra