+ 8

Why iframe is not working with some websites?

I set iframe to http://www.google.com Its not working explain it please. 🤕

11th Nov 2019, 1:15 PM
Absolute Zero ϟ
Absolute Zero ϟ - avatar
1 Respuesta
+ 3
There's a way for a website to allow/disallow embedding itself in an iframe by setting HTTP header x-frame-options. In your case, google sets x-frame-options: SAMEORIGIN - which means that googles disallow loading of the resource in an iframe outside of their domain.
11th Nov 2019, 3:56 PM
Val Petruchek
Val Petruchek - avatar