tried to use ajax to target div but it\'s not working. So now I try to use frameset like
As you've identified, Google prevents framing by sending a x-frame-options:SAMEORIGIN
response header. Thus, Google pages cannot be framed except in pages from the same domain (google.com
).
The X-Frame-Options
response header is a security feature which cannot be bypassed in modern browsers.
Reference
If you want to implement Google search in your website, look into Google Custom Search.