Skip to content

Commit

Permalink
Add allow-forms on iframe sandbox (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrlarano authored Oct 24, 2024
1 parent 1645212 commit 63379ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/incito-browser/incito.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ function renderView(view, canLazyload: boolean) {
tagName = 'iframe';
classNames.push('incito__html-embed-view');

attrs.sandbox = 'allow-scripts allow-same-origin';
attrs.sandbox = 'allow-scripts allow-same-origin allow-forms';
attrs.allowfullscreen = '';

const src = String(new URL(view.src));
Expand Down
2 changes: 1 addition & 1 deletion lib/kits/paged-publication/hotspots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function renderHotspot(hotspot, position, contentRect, boundingRect) {
title="sgn-pagedecoration-embed-${hotspot.id}"
height="100%"
width="100%"
sandbox="allow-scripts allow-same-origin"
sandbox="allow-scripts allow-same-origin allow-forms"
style="border:0;"
></iframe>
`;
Expand Down

0 comments on commit 63379ab

Please sign in to comment.