We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 989f420 commit ac5fcfdCopy full SHA for ac5fcfd
client/dashboard/sites/site-preview/index.tsx
@@ -18,6 +18,12 @@ export default function SitePreview( {
18
const secureUrl = url.replace( /^http:\/\//, 'https://' );
19
return (
20
<iframe
21
+ // Enabling sandbox disables most features, such as autoplay,
22
+ // alerts, popups, fullscreen, etc.
23
+ sandbox="allow-scripts allow-same-origin"
24
+ // Officially deprecated, but still widely supported. Hides
25
+ // scrollbars in case they are set to always visible.
26
+ scrolling="no"
27
loading="lazy"
28
// @ts-expect-error For some reason there's no inert type.
29
inert="true"
0 commit comments