<apex:page tabStyle="Account" showHeader="false">

      <apex:iframe src="https://www.youtube.com"/>


I have whitelisted the URL, still it says 'Refused to display 'https://www.youtube.com/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.'

From communitites , i can change the clickjack action but I wanted to open any external URL from Salesforce Sales cloud UI like inline account VF page.

Is their is any setting I can turned it off?


1 Answer 1


Youtube doesn't allow you to open the home page in an iframe. That's what the SAMEORIGIN error message means. To show a specific video, you have to use that video's "embed" URL.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .