title: How to set 'X-Frame-Options' on iframe?
body: <p>If I create an <code>iframe</code> like this: </p>
  
  <pre><code>var dialog = $('&lt;div id="' + dialogId + '" align="center"&gt;&lt;iframe id="' + frameId + '" src="' + url + '" width="100%" frameborder="0" height="'+frameHeightForIe8+'" data-ssotoken="' + token + '"&gt;&lt;/iframe&gt;&lt;/div&gt;').dialog({
  </code></pre>
  
  <p>How can I fix the error:</p>
  
  <blockquote>
    <p>Refused to display <code>'https://www.google.com.ua/?gws_rd=ssl'</code> in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.</p>
  </blockquote>
  
  <p>with JavaScript?</p>