Skip to content

Commit d51e123

Browse files
rkolesnikovDXRoman I. Kolesnikov false
and
Roman I. Kolesnikov false
authored
Fixed custom widgets editor configuration view (#2686)
Co-authored-by: Roman I. Kolesnikov false <rokolesnikov@microsoft.com>
1 parent 5580269 commit d51e123

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/custom-widget/ko/customWidgetEditorViewModel.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class CustomWidgetEditorViewModel implements WidgetEditor<CustomWidgetMod
2424
public readonly src: ko.Observable<string>;
2525
public readonly instanceId: ko.Observable<string>;
2626
public readonly iframeAllows: string = iframeAllows;
27-
public readonly iframeSandboxAllows: string = iframeSandboxAllows;
27+
public readonly iframeSandboxAllows: string = CustomWidgetEditorViewModel.buildSandboxParams();
2828

2929
constructor(
3030
private readonly viewManager: ViewManager,
@@ -69,6 +69,10 @@ export class CustomWidgetEditorViewModel implements WidgetEditor<CustomWidgetMod
6969
this.src(widgetSource.src);
7070
}
7171

72+
private static buildSandboxParams() {
73+
return iframeSandboxAllows + " allow-same-origin";
74+
}
75+
7276
private updateResponsiveObservables(): void {
7377
if (!this.model.styles) {
7478
return;

0 commit comments

Comments
 (0)