Question

Except for Caja(which is Java based) is there a simple javascript implementation for sandboxing iframes?

Was it helpful?

Solution

Load the iframe from a different domain, and the same origin policy will sandbox any scripts.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top