0

Im new to iFrames, and looking to show an iFrame inside a DIV on my page. everything looks good, when i load the page. but the Iframe doesnt show up (is see that it's loading in the backend and the DOM) but never showup it's hidden i think. Even Nothing from the code when the page loads says this..

 <div style="overflow:hidden" class="col-xs-12 col-md-12">
    <iframe frameborder="0" class="img-thumbnail" id="frame" sandbox="allow-
scripts allow-pointer-lock allow-popups allow-forms allow-same-origin" 
style="height: 389.233px;" src="http://www.yoman.com"></iframe> 
    </div>
Tharif
  • 13,794
  • 9
  • 55
  • 77

1 Answers1

0

you must set embed true , to do this add /embed to your link :

 <div style="bottom: 0px;" id="frame-container">
  <div id="frame-content">
    <div class="row">
      <div style="overflow:hidden" class="col-xs-12 col-md-12">
        <iframe frameborder="0" class="img-thumbnail" 
        id="frame" sandbox="allow-scripts allow-pointer-lock allow-popups allow-forms allow-same-origin " style="height: 389.233px;" 
        src="http://www.yoman.com/embed"></iframe> 
      </div>
    </div>
  </div>
</div>  

for more info refer this link:

Overcoming “Display forbidden by X-Frame-Options”

Community
  • 1
  • 1
Asieh hojatoleslami
  • 3,240
  • 7
  • 31
  • 45