File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/components/custom-widget/ko Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export class CustomWidgetEditorViewModel implements WidgetEditor<CustomWidgetMod
24
24
public readonly src : ko . Observable < string > ;
25
25
public readonly instanceId : ko . Observable < string > ;
26
26
public readonly iframeAllows : string = iframeAllows ;
27
- public readonly iframeSandboxAllows : string = iframeSandboxAllows ;
27
+ public readonly iframeSandboxAllows : string = CustomWidgetEditorViewModel . buildSandboxParams ( ) ;
28
28
29
29
constructor (
30
30
private readonly viewManager : ViewManager ,
@@ -69,6 +69,10 @@ export class CustomWidgetEditorViewModel implements WidgetEditor<CustomWidgetMod
69
69
this . src ( widgetSource . src ) ;
70
70
}
71
71
72
+ private static buildSandboxParams ( ) {
73
+ return iframeSandboxAllows + " allow-same-origin" ;
74
+ }
75
+
72
76
private updateResponsiveObservables ( ) : void {
73
77
if ( ! this . model . styles ) {
74
78
return ;
You can’t perform that action at this time.
0 commit comments