Skip to content

Commit

Permalink
fix(iframe): add 'allow-modals' to sandbox attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammednumaan committed Jan 9, 2025
1 parent 0b5276b commit 7242f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kumascript/macros/EmbedLiveSample.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,5 @@ if (height) { %> height="<%= height %>"<% }
%> src="about:blank" data-live-path="<%=env.url%>" data-live-id="<%=id%>"<%
if (allowedFeatures) { %> allow="<%= allowedFeatures %>"<% }
if ($token) { %> data-token="<%= JSON.stringify($token) %>"<% }
%> sandbox="allow-same-origin allow-scripts"></iframe></div><%
%> sandbox="allow-same-origin allow-scripts allow-modals"></iframe></div><%
if (hasScreenshot) { %></td></tr></tbody></table><% } %>

0 comments on commit 7242f21

Please sign in to comment.