Logic Machine Forum
Problems to visualize some internet pages - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Problems to visualize some internet pages (/showthread.php?tid=2092)



Problems to visualize some internet pages - Carlos Padilla - 23.05.2019

Hi, I have some problems to visualize some internet pages in an iframe, since some do it correctly, but others give me a message saying that the page rejects the connection. Some pages that I can not visualize are:

https://www.eltiempo.com/
https://www.elespectador.com/news
https://www.nytimes.com/
https://www.lemonde.fr/

Below I will show some in which if you can see the pages in the iframe:
https://www.publimetro.co/co/
https://www.elmundo.es/
https://www.bbc.com/mundo

Thank You


RE: Problems to visualize some internet pages - Erwin van der Zwart - 23.05.2019

Hi,

This is the message i see in the browser console:

Refused to display 'https://www.eltiempo.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

You cannot display a lot of websites inside an iFrame. Reason being that they send an "X-Frame-Options: SAMEORIGIN" response header. This option prevents the browser from displaying iFrames that are not hosted on the same domain as the parent page. This is a security feature to prevent click-jacking.

BR,

Erwin


RE: Problems to visualize some internet pages - Carlos Padilla - 23.05.2019

So for those pages, is it not possible to have them in an Iframe? Either by a lua script or JS?


RE: Problems to visualize some internet pages - Erwin van der Zwart - 23.05.2019

Hi,

Nope, It's a security feature, it would not be good if you can bypass that easily (:

BR,

Erwin


RE: Problems to visualize some internet pages - Carlos Padilla - 23.05.2019

Ok. Thank You Smile