We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 839ff5d + b728107 commit c54e74bCopy full SHA for c54e74b
1 file changed
lib/ComponentRelay.ts
@@ -367,7 +367,8 @@ export default class ComponentRelay {
367
}
368
369
Logger.info('Posting message:', postMessagePayload)
370
- this.contentWindow.parent.postMessage(postMessagePayload, this.component.origin!)
+ const targetOrigin = this.component.origin && this.component.origin !== 'null' ? this.component.origin : '*'
371
+ this.contentWindow.parent.postMessage(postMessagePayload, targetOrigin)
372
373
374
private activateThemes(incomingUrls: string[] = []) {
0 commit comments