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
Oliver Freeman 29Oliver Freeman 29 

Lightning Community Clickjack Protection/My Domain Right-Frame

Hey,

In the past we've hosted content for the My Domain Right-Frame on our Hubspot website on their own pages. We're looking to now host the content for this in Salesforce in a community (unauthenticated/public). To achieve this, I've built a lightning component that will allow users to upload a static resource with multiple images, and the component will randomly select one of the images in the resource to display. My thinking was that I could add this component to an unauthenticated community and set that community URL to be the Right-Frame content URL in My Domain in Salesforce - when I do this, the right frame content just doesn't display, and the console shows an error - Refused to display [URL] in a frame because it set 'X-Frame-Options' to 'sameorigin'. I thought that this was down to Clickjack protection, which I've now disabled in the site settings, but that doesn't make a difference.

Any help would be greatly appreciated,
Thanks,

Oli