iframe-missing-sandbox
UnreleasedConfiguration
rslint.config.ts
Require a sandbox attribute on iframe elements.
The sandbox attribute adds restrictions to the document inside an iframe. This rule also validates statically known sandbox tokens and rejects the unsafe combination of allow-scripts and allow-same-origin, which permits the embedded document to remove its sandbox.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Dynamic sandbox values are permitted because they cannot be evaluated statically:
Rule Options
This rule has no options.