samedi 29 novembre 2014

Cross Origin XMLHttpRequest iFrame "Mini Browser"


Is it possible to get around the security and mimick either a full-browser or mobile browser within a webpage?


I had an idea to set the HTML manually, using an AJAX/XMLHttpRequest ("Get" request)



document.querySelector('#myiframe').contentWindow.document.write("<html><body>Hello
world</body></html>");


(from How to set HTML content into an iframe in IE8, IE9)


Can anyone verify this is possible? I'm guessing you would lose relevant site date (cookies, cache, etc)





Aucun commentaire:

Enregistrer un commentaire