Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 6d6e3fd5c7

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
styles
README.md
icon_128.png
main.html
main.js
manifest.json
sandboxed.html

README.md

Sandbox

This sample creates a window containing a sandboxed iframe (sandbox.html). The sandbox uses eval() function to write some HTML to its own document.

The default packaged app Content Security Policy (CSP) value disallows the use of eval() or new Function() (or variants like Function.apply()) so using a sandbox is necessary for this process. To enable sandboxing in your app you add the sandbox property to your app's manifest file.

See more info on using eval safely in packaged apps.

APIs

Something went wrong with that request. Please try again.