You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,12 +30,25 @@ you can pass this into the constructor or `setHTML`
30
30
head: string contents for `<head>`
31
31
html: string contents for entire iframe
32
32
container: (constructor only) dom element to append iframe to, default = document.body
33
+
sandboxAttributes: array of capability flag strings, default = ['allow-scripts']
33
34
scrollingDisabled: (constructor only) boolean for the iframe scrolling attr
34
35
}
35
36
```
36
37
37
38
you can also just pass in a string and it will be used as `{html: 'yourstring'}`
38
39
40
+
### security
41
+
42
+
by default the sandbox attribute is set with 'allow-scripts' enabled. pass in an array of capability flag strings. [Available flags](http://www.html5rocks.com/en/tutorials/security/sandboxed-iframes/):
0 commit comments