diff --git a/src/plugin/pluginPortal/pluginPortal.component.ts b/src/plugin/pluginPortal/pluginPortal.component.ts index 0b894de55d63890708723694ede56bb5276ad03d..46f662e7abbd255213d83235db0ea89a1bdc0765 100644 --- a/src/plugin/pluginPortal/pluginPortal.component.ts +++ b/src/plugin/pluginPortal/pluginPortal.component.ts @@ -10,13 +10,15 @@ import { getPluginSrc, SET_PLUGIN_NAME } from "../const"; /** * sandbox attribute must be set statically * see https://angular.io/errors/NG0910 + * + * allow-same-origin is needed in order for postmessage to work */ @Component({ selector: 'sxplr-plugin-portal', template: ` <iframe [src]="src | iframeSrc" - sandbox="allow-downloads allow-popups allow-popups-to-escape-sandbox allow-scripts" + sandbox="allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox allow-scripts" #iframe> </iframe> `,