0
I was starting a simple project but when I will use the <iframe>
there is a problem, the page problem which I am requesting does not appear.
I did a search on the subject and found some people talking about X-Frame-Options Header
however I did not understand if this would solve my problem or would block external sites from 'ordering' my site as <iframe>
, but I didn’t give up and tried to use <meta>
, however I did not have the desired result.
Meta that I used
<meta http-equiv="X-FRAME-OPTIONS" content="DENY">
The
X-FRAME-OPTIONS
blocks the use of frames, if you WANT to use frames then remove it. If the same doesn’t appear the contents the problem may be anything, for example you are using//site.com/
on a protocol pagefile:///
or ssl problems, or in your html (typo). So if you don’t give details, you don’t have to reply. Read this link to understand how to create an example of the problem that others can reproduce so they can help you: HOW TO CREATE A MINIMUM, COMPLETE AND VERIFIABLE EXAMPLE - A good night friend!– Guilherme Nascimento
I asked a question a little while ago about, see if it can help you. http://answall.com/questions/80969/refused-to-display-in-a-frame-because-it-set-x-frame-options-to-sameorigin
– Marconi
Just to fix the
X-FRAME-OPTIONS
withdeny
is that blocks frames.– Guilherme Nascimento