Add allow-forms to sandbox attribute for form support

This commit is contained in:
Andrew Harvard
2026-02-05 09:30:09 -05:00
parent 0f2eaae067
commit a0ef38dcc7
@@ -32,7 +32,8 @@
// Sandbox restricts the iframe's capabilities
// allow-scripts: Let JS run
// allow-same-origin: Required for postMessage to work properly
guestIframe.setAttribute('sandbox', 'allow-scripts allow-same-origin');
// allow-forms: Needed if the app has forms
guestIframe.setAttribute('sandbox', 'allow-scripts allow-same-origin allow-forms');
// Build Permission Policy allow attribute from requested permissions
var allowList = [];