Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IFrame: This content cannot be displayed in a frame

I have two internal sites. I'm trying to show one's content in the iframe of the other site. However I'm getting this message: "This content cannot be displayed in a frame." I've read the reason I'm getting this message but, I would like to bypass it since the sites are internal and I'm not concerned with someone trying to hijack my users. I couldn't find a way to bypass it after searching the internet, but feel like it should be possible because the rest of the message seems to hint at it.

"To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame."

Since I'm the publisher how can I allow it to be displayed in the frame? Thanks!

like image 338
daveomcd Avatar asked Jan 03 '13 15:01

daveomcd


People also ask

What does this content Cannot be displayed in a frame mean?

In some cases in Internet Explorer and Edge, the This content cannot be displayed in a frame error, could appear when navigating through the backend of Sitefinity. For example, in the Libraries or Site Sync module sections. This is an obsolete directive that no longer works in modern browsers. Don't use it.


2 Answers

use <meta http-equiv="X-Frame-Options" content="allow"> in the one to show in the iframe to allow it.

like image 69
Cinder Avatar answered Dec 26 '22 07:12

Cinder


The X-Frame-Options is defined in the Http Header and not in the <head> section of the page you want to use in the iframe.

Accepted values are: DENY, SAMEORIGIN and ALLOW-FROM "url"

like image 28
Carl Bosch Avatar answered Dec 26 '22 07:12

Carl Bosch