0

I have a iframe in page , and whatever url I type to address bar, it renders that url in the iframe, but for http://www.yahoo.com , it is showing blank iframe and giving me error "Refused to display 'https://in.yahoo.com/?p=us' in a frame because it set 'X-Frame-Options' to 'DENY'"

Now i want to handle this error, May be i can redirect user to directly to www.yahoo.com...

Please Give me Some Solution.How Can i solve it?

THANKS

  • 1
    This is to prevent malicious pages from appearing like legitimate ones. It's not meant to be bypassed. – howderek May 07 '15 at 18:38

1 Answers1

1

You can't; Yahoo has used the X-Frame-Options header to "opt out" of having their site displayed in a frame. This header cannot be overridden by your page.

Pick another site to put in your iframe.