user386430
user386430

Reputation: 4967

Refused to display in a frame because it set 'X-Frame-Options' to 'DENY' in JavaScript

I am trying to load url in iframe.I am getting the error Refused to display in a frame because it set 'X-Frame-Options' to 'DENY'.Can anybody tell how to overcome this error

Thanks

Upvotes: 4

Views: 8352

Answers (2)

mofidul
mofidul

Reputation: 119

I disabled my antivirus. And it worked.

Upvotes: -3

user3786755
user3786755

Reputation:

You can't, not for just any URL, however, if you own/can get in contact with the owner of the site, then you/they can allow your site to display the theirs in an <iframe>:

The X-Frame-Options response header

Upvotes: 2

Related Questions