mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
Add allow-forms to sandbox attribute for form support
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user