-
Which of the following allows the sandboxed iframe to run scripts from the same domain?
-
- allow-scripts
- allow-pointer-lock
- allow-forms
- allow-same-origin
- None of these
Correct Option: A
Scripts are re-enabled by allow-scripts. The sandbox attribute enables an extra set of restrictions for the content in the iframe. Allow-forms re-enables from submission. Allow-same-origin allows iframe content to be treated as being from the same origin. API’s are re-enable by allow-pointer-lock.