0

I am trying to embed a google(https://www.google.com) into an iframe but it show's frame because it set 'X-Frame-Options' to 'sameorigin'. If there is an error X-Frame-Options' to 'sameorigin' i need to show a button as "Click hear to launch in new window". I am using HTML and Jquery.

Any idea to solve this?

Punith
  • 191
  • 1
  • 5
  • check the iframe length – RAUSHAN KUMAR Jul 28 '17 at 10:41
  • Google (and most domains, if they are properly configured) will set the `X-FRAME-OPTIONS` header to disallow the site from being shown in an `iframe` on an external site for very obvious security reasons. There is nothing you can do to stop this. – Rory McCrossan Jul 28 '17 at 10:48

0 Answers0