title: Sharepoint : Refused to display URL in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'
body: <p>I am trying to open a my site page url as a modal dialog using SP.UI.ModalDialog.showModalDialog from a different site collection, but got this error</p>
  
  <p>Refused to display ‘URL’ in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.</p>
  
  <p>Tried changing the HTML security for my site collection by adding the domain to the allowed list . But didn’t help .  Am I missing something?</p>
  
  <p>Site Settings -> Site Collection Administration -> Html Field Security</p>