Disable Cookies Inside A Frame/Iframe

DLiKS picture DLiKS · Jul 25, 2010 · Viewed 7.5k times · Source

Is there any way to programatically disable cookies being created by a page displayed inside of a frame/iframe? Or to generalise further, is it possible to programatically disable javascript running on such a page?

Thanks,

DLiKS

Answer

Arjan picture Arjan · Jul 25, 2010

with iframe sandbox attribute (html5) it will be possible (implemented in chrome)

http://dev.w3.org/html5/spec/Overview.html#attr-iframe-sandbox

NullUserException already answered what you can do today without browser support