sandbox
in iframe JS-D01024 <h2>Astromomy Picture Of The Day</h2>
25 <figure>
26 {data.media_type === "video" ? (
27 <iframe src={data.url} title="a">28 {data.title}
29 </iframe>
30 ) : (
The sandbox attribute enables an extra set of restrictions for the content in the iframe.
When the sandbox attribute is present, it will:
<embed>
, <object>
, <applet>
etc)The value of the sandbox attribute can either be just sandbox (allow-all), after which restrictions are applied explicitly, or deny-all, listing a space-separated list of pre-defined values that will remove the restrictions explicitly.
<iframe></iframe>
<iframe/>
<iframe sandbox="__unknown__"></iframe>
<iframe sandbox="allow-popups allow-popups-to-escape-sandbox allow-pointer-lock allow-same-origin allow-top-navigation"></iframe>
<div sandbox="__unknown__" />;
<iframe sandbox="" />;