iframe 에 페이지가 뜨지 않는 경우 X-Frame-Options
X-Frame-Options
iframe 에 외부 url을 넣을 경우 페이지가 분명 존재함에도 iframe에 표시가되지 않을 때가 있다 이때 크롬개발자 도구를 Console을 보면 아래와 같은 메세지를 확인 할 수 있다.
1 |
Refused to display 'https://example.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'. |
X-Frame-Options 은 숨겨진 링크를 사용자를 속여 클릭하게 만드는 Clickjacking 을 방지하기 위한 옵션으로 X-Frame-Options의 경우 아래와 같이 3가지 옵션이 존재한다.
- DENY
- SAMEORIGIN
- ALLOW-FROM http://example.com/
DENY의 경우 iframe에 페이지를 표시 할 수 없다.
SAMEORIGIN의 경우 같은 도메인을 사용하는 사용하는 페이지만 표시 할 수 있다.
ALLOW-FROM의 경우 지정한 도메인의 페이지만 iframe에 표시할 수 있다.
위 설정은 HTML에서 변경 할수 없고 서버관리자에 의해서 수정될 수 있다.
Ubuntu 16.04 LTS Apache2의 경우
/etc/apache2/conf-available/security.conf 파일을 수정함으로써 변경 또는 사용을 중지할 수 있다.
1 2 3 4 5 |
# Setting this header will prevent other sites from embedding pages from this # site as frames. This defends against clickjacking attacks. # Requires mod_headers to be enabled. # Header set X-Frame-Options: "sameorigin" |
대략 70번째 줄에 위치하고 있으며 쌍따움표안에 값을 변경하면된다 사용하지 않을 경우 Header 앞에 #으로 주석을 걸어 줌으로써 기능을 정지 시킬 수 있다.
자세한 내용은 아래의 링크를 참고
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
canli tv
says:A round of applause for your blog article. Much obliged. Almira Ruy Ligetti
slotcasinox
says:видать наколках, casino x twitter
FreeSlotsRot
says:видите ли Пуэбла, official casino x online
sikis
says:I gotta bookmark this website it seems extremely helpful very helpful. Annmarie Tedie Zeralda
sikis
says:Keep up the great piece of work, I read few articles on this website and I think that your blog is really interesting and has lots of superb info . Papagena Myrwyn Karb
bahis
says:Those turned out adorable!! I love upcycle crafts, and this one is very functional. Renee Antoni Roeser
bahis
says:I stopped gambling after the first week. I got tired of watching the dealer make 21 after drawing five cards. Esma Jeth Grier
sikis
says:Thanks for sharing your info. I truly appreciate your efforts and I am waiting for your next post thanks once again. Joete Roi Wahkuna
sikis
says:Perfect piece of work you have done, this web site is really cool with superb info . Gwyn Kaspar Hux
bahis
says:Please take a look at the internet sites we stick to, including this one, as it represents our picks in the web. Matilda Ricard Jodee
bahis
says:I am not real wonderful with English but I line up this real easygoing to interpret. Cloe Zebulen Bolt
sikis
says:Hey just wanted to give you a quick heads up. The words in your content seem to be running off the screen in Safari. Sydelle Hill Chemush
bahis
says:There is definately a great deal to find out about this topic. I like all the points you made. Jacquelin Hayden Burnside
indir
says:Simply wish to say your article is as amazing. The clarity in your post is simply great and i could assume you are an expert on this subject. Laryssa Carlyle Ewer
torrent
says:I have read so many content regarding the blogger lovers but this paragraph is truly a fastidious post, keep it up. Shelia Darrick Morra
indir
says:I like this website its a master peace ! Glad I detected this on google . Freddi Toby Adali
download
says:I enjoy the efforts you have put in this, thanks for all the great content. Vinita Conny Fabrianne
torrent
says:Thanks again for the post. Really thank you! Great. Dulcine Alfredo Ridinger
download
says:Anyone who is a hardcore hold up to one GB of data. Kathleen Biron Chin
bluray
says:Thanks for sharing, this is a fantastic article post. Much obliged. Elisha Rainer Jerald
yify
says:Marvelous, what a weblog it is! This website gives useful information to us, keep it up. Janene Gunther Beaufort
ucretsiz
says:I do follow both of you already! Lucky me! Viola from Twelfth Night. Batsheva Dominik Clein
web
says:Hello, recognition you for facts! I repost in Facebook
more
says:hello
...
says:you are recommended to check out the list of qualifications
Madison
says:When the nose is stuffy, peel the onion and cut it into large pieces. http://om987.com
free porn
says:Lorem ipsum dolor sit amet, consectetur adipiscing morbi iubse milinse tempus arcu nec tortor pellentesque lacinia felis lacus non nibh. Eudora Bank Pauletta
موزیک
says:Thanks for a marvelous posting! I quite enjoyed reading it, you’re a great author.
Bruce
says:Pretty element of content. I just stumbled upon your weblog and in accession capital to say that I acquire in fact
enjoyed account your blog posts. Anyway I will be subscribing for your feeds or
even I achievement you access persistently quickly.
Check out my web blog; cheap flights
Genia
says:Hi there this is somewhat of off topic but I was wanting
to know if blogs use WYSIWYG editors or if you have
to manually code with HTML. I’m starting a blog soon but have no coding know-how so I wanted to get advice from someone with experience.
Any help would be enormously appreciated!
Here is my webpage :: cheap flights
Victoria
says:I am not sure where you’re getting your info, but great topic.
I needs to spend some time learning much more or understanding more.
Thanks for magnificent info I was looking for this information for my mission.
Here is my web-site … cheap flights
Cara
says:bookmarked!!, I like your site!
Also visit my homepage :: cheap flights
Layla
says:Hello, I enjoy reading all of your article post.
I wanted to write a little comment to support you.
Feel free to surf to my website cheap flights
movie online
says:I enjoy reading through an article that can make men and women think. Also, thank you for allowing for me to comment! Peg Elliot Denae
Cara
says:The other day, while I was at work, my cousin stole my iphone and tested to see if it can survive a thirty foot drop, just so she
can be a youtube sensation. My iPad is now broken and she has 83
views. I know this is completely off topic but I had to share it with someone!
My homepage cheap flights [tinyurl.com]
Caitlin
says:It’s actually a great and helpful piece of information. I’m satisfied that you shared this useful information with
us. Please stay us informed like this. Thanks for sharing.
my homepage cheap flights
Chad
says:Excellent post. I used to be checking continuously
this weblog and I am impressed! Very helpful information particularly the ultimate part 🙂 I deal with such information much.
I used to be seeking this particular info for a long time.
Thank you and good luck.
Here is my homepage; cheap flights (tinyurl.com)
Lawanna
says:whoah this weblog is fantastic i really like reading your posts.
Stay up the good work! You realize, many individuals are searching
around for this information, you could help them
greatly.
Have a look at my webpage … cheap flights; tinyurl.com,
Cyrus
says:Hi, Neat post. There’s an issue along with your website in internet explorer, could check this?
IE still is the market chief and a good portion of people will omit your magnificent writing because
of this problem.
Here is my blog … cheap flights (http://tinyurl.com/y68jvlc3)
diziler
says:You skin becomes more prone to infection because if it. Lorie Johnny Dwan
kesintisiz
says:Howdy! This is my first comment here so I just wanted to give a quick shout out and say I genuinely enjoy reading your posts. Can you suggest any other blogs/websites/forums that deal with the same topics? Thanks for your time! Carlina Frederic Ahmar
Lamar
says:Keep on writing, great job!
Review my web page cheap flights (tinyurl.com)
Gretchen
says:I am really enjoying the theme/design of your web site. Do you ever run into any web browser compatibility problems?
A couple of my blog visitors have complained about my site not operating correctly in Explorer but looks great in Safari.
Do you have any tips to help fix this problem?
My blog post – cheap flights (tinyurl.com)
turkce
says:Great delivery. Great arguments. Keep up the good spirit. Marga Germayne Wahlstrom
turkce
says:Inderdaad de Dordogne is echt een streek voor het gezin, volgend jaar gaan we weer, en vergeet de grotten dan ok niet te bezoeken. Jania Ryley Matilda
Isaac
says:Good Read Use Punjab Board 12th Result 2019 Pseb.Ac.In
My page; library
Karine
says:Scientific Inquiry Method Medical Biology Master’S Degree
Feel free to visit my web blog: ebook
Bertie
says:Someone essentially assist to make significantly posts I might state.
That is certainly the first time I frequented your website page and thus far?
I amazed with all the research you created to make this actual publish amazing.
Excellent activity!
Also visit my web-site … GalaZFines
cialis generic
says:canadian pharmaceuticals online
Fbgjeu
says:tadalafil tablets – tadalafil 5mg tadalafil 5mg