Skip to content
Snippets Groups Projects
Commit 4b254f4c authored by Xiao Gui's avatar Xiao Gui
Browse files

bugfix: plugin postmessage

parent bee1ddee
No related branches found
No related tags found
No related merge requests found
......@@ -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>
`,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment