Ajesh Kolakkadan
Ajesh Kolakkadan

Reputation: 71

Url is not loading in iFrame Blank Screen

<iframe src="http://bhasuri.ateesdemo.com/" height="600">
  <p>Your browser does not support iframes.</p>
</iframe>

this url is not loading in my iframe tag,

Upvotes: 1

Views: 7474

Answers (2)

Ambrish Pathak
Ambrish Pathak

Reputation: 3968

This is so because:

Refused to display 'http://bhasuri.ateesdemo.com/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

enter image description here X-Frame-Options SAMEORIGIN is a response header set by the domain from which you are requesting the resource (http://bhasuri.ateesdemo.com in your example). They have set the header to SAMEORIGIN in this case, which means that they have disallowed loading of the resource in an iframe outside of their domain.

For more info refer : this link

Upvotes: 3

Yonatan Ayalon
Yonatan Ayalon

Reputation: 2037

This is the error I'm getting: "Refused to display 'http://bhasuri.ateesdemo.com/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'"

Which means that the owner of the page set its server to only allow "sameorigin" URLs to be allowed to present the page.

How to set 'X-Frame-Options' on iframe?

Upvotes: 1

Related Questions