Why my< ifram >does not run ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why my< ifram >does not run ?

<iframe name="w3_schools" SRC="http://www.w3schools.com"></iframe>

4th Apr 2020, 7:11 AM
Sultan Yalcouye
Sultan Yalcouye - avatar
4 Answers
+ 4
Apart from that origin thing. On android, chrome/android webview actively blocks cleartext traffic. Make sure the site support https and it allows loading in an iframe. I got clear text not permited error on my end.
4th Apr 2020, 7:32 AM
Lord Krishna
Lord Krishna - avatar
+ 1
That is because w3schools does not allow other origins to use their site in iframes. They do it to make sure that their site and data is not being embedded to other websites. More here : https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
4th Apr 2020, 7:17 AM
Raj Chhatrala
Raj Chhatrala - avatar
0
Thanks Mr x Is there another reason for iframe problem?
4th Apr 2020, 7:24 AM
Sultan Yalcouye
Sultan Yalcouye - avatar
0
Ok thanks
4th Apr 2020, 8:40 AM
Sultan Yalcouye
Sultan Yalcouye - avatar