Skip to content

Commit

Permalink
[vscode] add allow-forms
Browse files Browse the repository at this point in the history
Fixes #6694

Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
  • Loading branch information
svenefftinge committed Dec 5, 2019
1 parent 8fde6f9 commit 9983b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-ext/src/main/browser/webview/webview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export class WebviewWidget extends BaseWidget implements StatefulWidget {

const element = document.createElement('iframe');
element.className = 'webview';
element.sandbox.add('allow-scripts', 'allow-same-origin');
element.sandbox.add('allow-scripts', 'allow-forms', 'allow-same-origin');
element.setAttribute('src', `${this.externalEndpoint}/index.html?id=${this.identifier.id}`);
element.style.border = 'none';
element.style.width = '100%';
Expand Down

0 comments on commit 9983b6b

Please sign in to comment.